commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spencer Elliott <spen...@solution400.com>
Subject FileUpload Streaming API checking file size
Date Sun, 04 Mar 2007 02:07:32 GMT
Hi,
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?

Thanks,

Spencer

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


Mime
View raw message