commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fat bold cyclop <>
Subject [fileupload] maximal file size and streaming
Date Thu, 23 Apr 2009 18:58:34 GMT
I was working on uploading files to Google App Engine application with
fileupload Apache Commons:
(I describe there what I did.)

Everything work fine except for when you set maximal file size (let's
say 5k), nevertheless ALL the file gets uploaded to the server before
it tells you that the file is too big.

Is there a way to configure the upload (for apache commons
FileUpload), so the input stream throw exception after receiving data amount
defined by max file size bytes. So the upload servlet doesn't wait to
upload 40M of data if it knows, that the max file size is 5kB.

fat bold cyclop

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message