You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Samson, Réjean <RS...@korem.com> on 2008/01/31 20:35:10 UTC

Cancel FileUpload ?

Is there a way to close the input stream if I detect that the file is too big i.e. It throws a FileUploadException.

 

I'm using tomcat 5.5.17 and commons-fileupload-1.2.

 

It seems that even if I close the ServletInputStream, the process of uploading the file continue ?

 

Any clue ?

 

_____________________________



 

Réjean Samson 
Analyste programmeur 
rsamson@korem.com

KOREM inc.
 <http://www.korem.com/> www.korem.com
_____________________________

680, boul. Charest Est, bureau 120
Québec, QC  G1K 3J4  Canada
Tél. : (418) 647-1555
Téléc. : (418) 647-1666
Sans frais : 1 888 440-1MAP