Issue Details (XML | Word | Printable)

Key: FILEUPLOAD-88
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jochen Wiedmann
Reporter: Andrey Aristarkhov
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons FileUpload

[fileupload] Add a new property maxFileSize to control a size of separate uploaded file but not a whole request

Created: 17/Jun/03 09:53 PM   Updated: 14/Mar/07 01:04 PM
Return to search
Component/s: None
Affects Version/s: 1.0 Final
Fix Version/s: 1.2

Time Tracking:
Not Specified

Environment:
Operating System: Windows XP
Platform: Other

Bugzilla Id: 20838
Resolution Date: 07/Aug/06 08:53 PM


 Description  « Hide
Current implementation of FileUpload allows to limit only a whole request size
but not size of separate uploaded files. Probably it's reasonable to add a new
property to FileUpload class, say maxFileSize, that will allow to limit size of
separate files?

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Justin Sampson added a comment - 20/Aug/04 07:49 AM
We've done something like this (in our own FileItem implementation).

In particular, we want to continue parsing the remaining items even if one item
is a huge file, so we implemented our own FileItem that contains an OutputStream
wrapper that keeps track of the file size but doesn't keep any data for a file
that is too big. Other parts of the system can then see that a file was
uploaded, along with its filename and even its size, but none of the data.


Martin Cooper added a comment - 25/Oct/04 11:42 AM
      • COM-1144 has been marked as a duplicate of this bug. ***

Jochen Wiedmann added a comment - 07/Aug/06 08:53 PM
Added.