public void setUploadTempDir ( File uploadTempDir ) throws IOException { if ( ! uploadTempDir . exists ( ) && ! uploadTempDir . mkdirs ( ) ) { String message = "Given uploadTempDir [" + uploadTempDir + "] could not be created." ; throw new IllegalArgumentException ( message ) ; } this . mFileItemFactory . setRepository ( uploadTempDir ) ; }
Set the temporary directory where uploaded files get stored .