commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Re: [fileupload] Cancel FileUpload when FileSizeMax is exceeded
Date Mon, 28 Jan 2013 12:03:39 GMT
Hi James,

I'am working with a filter (FileUploadFilter) and not with servlets 
directly. This FileUploadFilter implements the "javax.servlet.Filter" 

Best Regards

Von:    James Carman <>
An:     "Commons Users List" <>
Datum:  28.01.2013 12:09
Betreff:        Re: [fileupload] Cancel FileUpload when FileSizeMax is 

The container itself has to stop this.  Have you tried this:

See if that helps. 

On Jan 25, 2013, at 6:18 AM, wrote:

> Hi All,
> I have a JSF application which runs in JBoss 6.1 which uses internal the 

> Tomcat Servlet container.
> I want to prevent too large file uploads and have set the property "
> fileSizeMax" to 10MB within the class "FileUploadBase". It works, the 
> upload throws an FileSizeLimitExceededException for all files larger 
> 10MB.
> But the main problem is, that the whole file will be transferred over 
> network. I have found this out by checking the network traffic.
> How can I interrupt the file transfer when the max size is exceeded 
> without transferring the whole file? I assume that the file will be 
> transferred in multiple packages because of the web form attribute 
> ="multipart/form-data.
> Best regards 
> Anton

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message