commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fat bold cyclop <fat.bold.cyc...@gmail.com>
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:
http://shogi-software.blogspot.com/2009/04/google-app-engine-and-file-upload.html
(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.

Regards,
fat bold cyclop

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message