Class DiskFileUploadFactory
java.lang.Object
jodd.http.upload.impl.DiskFileUploadFactory
- All Implemented Interfaces:
FileUploadFactory
Factory for
DiskFileUpload-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiskFileUploadFactory(String destFolder) DiskFileUploadFactory(String destFolder, int maxFileSize) -
Method Summary
Modifier and TypeMethodDescriptionCreates new instance ofuploaded file.intsetMaxFileSize(int maxFileSize) Sets maximum file upload size.setUploadDir(String destFolder)
-
Field Details
-
destFolder
-
maxFileSize
protected int maxFileSize
-
-
Constructor Details
-
DiskFileUploadFactory
- Throws:
IOException
-
DiskFileUploadFactory
- Throws:
IOException
-
DiskFileUploadFactory
- Throws:
IOException
-
-
Method Details
-
setUploadDir
- Throws:
IOException
-
getMaxFileSize
public int getMaxFileSize() -
setMaxFileSize
Sets maximum file upload size. Setting to -1 will disable this constraint. -
create
Creates new instance ofuploaded file.- Specified by:
createin interfaceFileUploadFactory
-