You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by fat bold cyclop <fa...@gmail.com> on 2009/04/23 20:58:34 UTC

[fileupload] maximal file size and streaming

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