public class FileUpload extends AbstractFileUploadBase
High level API for processing file uploads.
This class handles multiple files per single HTML widget, sent using
multipart/mixed encoding type, as specified by
RFC 1867.
How the data for individual parts is stored is determined by the factory used to create them; a given part may be in memory, on disk, or somewhere else.
| Constructor and Description |
|---|
FileUpload(IFileItemFactory aFileItemFactory)
Constructs an instance of this class which uses the supplied factory to
create
FileItem instances. |
| Modifier and Type | Method and Description |
|---|---|
IFileItemFactory |
getFileItemFactory()
Returns the factory class used when creating file items.
|
createFileItemHeaders, getBoundary, getFieldName, getFileName, getFileSizeMax, getHeaderEncoding, getItemIterator, getParsedHeaders, getProgressListener, getSizeMax, parseRequest, setFileSizeMax, setHeaderEncoding, setProgressListener, setSizeMaxpublic FileUpload(@Nonnull IFileItemFactory aFileItemFactory)
FileItem instances.aFileItemFactory - The factory to use for creating file items.@Nonnull public IFileItemFactory getFileItemFactory()
getFileItemFactory in class AbstractFileUploadBaseCopyright © 2014–2019 Philip Helger. All rights reserved.