Example usage for Java org.apache.commons.fileupload.disk DiskFileItemFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_SIZE_THRESHOLD The default threshold above which uploads will be stored on disk. |
DiskFileItemFactory() Constructs an unconfigured instance of this class. | |
DiskFileItemFactory(int sizeThreshold, File repository) Constructs a preconfigured instance of this class. |
FileItem | createItem(String fieldName, String contentType, boolean isFormField, String fileName) Create a new org.apache.commons.fileupload.disk.DiskFileItem instance from the supplied parameters and the local factory configuration. |
File | getRepository() Returns the directory used to temporarily store files that are larger than the configured size threshold. |
void | setFileCleaningTracker(FileCleaningTracker pTracker) Returns the tracker, which is responsible for deleting temporary files. |
void | setRepository(File repository) Sets the directory used to temporarily store files that are larger than the configured size threshold. |
void | setSizeThreshold(int sizeThreshold) Sets the size threshold beyond which files are written directly to disk. |