DEXTUploadJ
DEXTUploadJ References > FileUpload > Method > setMaxFileLength
setMaxFileLength Method
- Version
- 1.0.1.0
- Environment
- Sun JDK1.4
- Target
- Upload
- Signature
- public void setMaxFileLength(int nByteLength)
- Parameters
-
Name Signature Description nByteLength int File size (byte) - Return value
- Throws
- DEXTUploadException
- Description
-
Limits the maximum size of files for uploading. Error when files bigger than assigned size are uploaded. Standard value is '2GB'. Possible to assign maximum of 2*1024*1024*1024-1(2GB).
- Usage
-
FileUpload fileUpload = new FileUpload(request, response); ...omitted... fileUpload.setMaxFileLength(5*1024*1024);