Method Summary |
|
protected void | cleanupFileItems(Collection multipartFiles) Cleanup the Spring MultipartFiles created during multipart parsing,
potentially holding temporary data on disk. |
protected String | getDefaultEncoding() |
public DiskFileItemFactory | getFileItemFactory() Return the underlying org.apache.commons.fileupload.disk.DiskFileItemFactory
instance. |
public FileUpload | getFileUpload() Return the underlying org.apache.commons.fileupload.FileUpload
instance. |
protected boolean | isUploadTempDirSpecified() |
protected DiskFileItemFactory | newFileItemFactory() Factory method for a Commons DiskFileItemFactory instance.
Default implementation returns a standard DiskFileItemFactory.
Can be overridden to use a custom subclass, e.g. |
abstract protected FileUpload | newFileUpload(FileItemFactory fileItemFactory) Factory method for a Commons FileUpload instance. |
protected MultipartParsingResult | parseFileItems(List fileItems, String encoding) Parse the given List of Commons FileItems into a Spring MultipartParsingResult,
containing Spring MultipartFile instances and a Map of multipart parameter. |
protected FileUpload | prepareFileUpload(String encoding) Determine an appropriate FileUpload instance for the given encoding. |
public void | setDefaultEncoding(String defaultEncoding) Set the default character encoding to use for parsing requests,
to be applied to headers of individual parts and to form fields.
Default is ISO-8859-1, according to the Servlet spec.
If the request specifies a character encoding itself, the request
encoding will override this setting. |
public void | setMaxInMemorySize(int maxInMemorySize) Set the maximum allowed size (in bytes) before uploads are written to disk.
Uploaded files will still be received past this amount, but they will not be
stored in memory. |
public void | setMaxUploadSize(long maxUploadSize) Set the maximum allowed size (in bytes) before uploads are refused. |
public void | setUploadTempDir(Resource uploadTempDir) Set the temporary directory where uploaded files get stored. |