Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File upload using commons-upload-file and tomcat 5.5

843841Jan 30 2008 — edited Jan 31 2008
Hi,

This is my first post and I hope that I post it at the right place.

I'm trying to upload a file using commons-upload-file and tomcat 5.5.

Is there a way to prevent submitting a big file, If I detect that the file being uploaded exceed a limit that I have fixed ?

i.e. I check the request length, if it's bigger than 1meg I cancel the whole thing and the big file is not transferred.

The problem that I get at the moment is that it seems that the file is transferred even if I close request inputstream or response outputstream. Any help would be appreciated !


Thank you

Redgy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 30 2008
2 comments
165 views