hi .
  I use fileupload like this:

ServletFileUpload upload = new ServletFileUpload();
 upload.setSizeMax(33800);
try {
   iter = upload.getItemIterator(request);
} catch (SizeLimitExceededException e) {
   writer.write("tooLargeFile");
 }


the problem is this code throws SizeLimitExceededException  until the whole 
file was uploaded.
if I upload a large file (like 1000M),it costs a long time before throw out the 
exception.
I want to throw the exception just after the server received mort bytes than 
the maxSize, how should I do?
does anybody have good ideas?

thanks

2010-04-29 



maillistuser 

Reply via email to