commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spencer Elliott <>
Subject FileUpload Streaming API checking file size
Date Sun, 04 Mar 2007 02:07:32 GMT
I am using the common.fileupload 1.2 streaming API to upload files using 
AJAX (YAHOO) and servlets.

I have used setFileSizeMax to limit file upload size but find it 
unacceptable because the exception is not triggered until setFileSizeMax 
bytes are read/written.

I would like to check the file sizes before the upload begins.  Is there 
a way to access fileSize property?

I have also attempted to use the progressListener and this gives me the 
file size sooner but I am unsure what the proper procedure is to 
terminate the stream from the listener?



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

View raw message