commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ku...@dakosy.de
Subject RE: Re: [fileupload] Cancel FileUpload when FileSizeMax is exceeded
Date Tue, 29 Jan 2013 12:23:42 GMT
Hi James,

which web.xml do you mean? The file within my project or within the JBoss 
folder (jboss6\server\myApplication\deploy\jbossweb.sar)?
For which servlet is these multi part configuration? I have to configure a 
servlet name and a servlet class.

Best regards 



Von:    James Carman <jcarman@carmanconsulting.com>
An:     "Commons Users List" <user@commons.apache.org>
Datum:  28.01.2013 21:20
Betreff:        Re: [fileupload] Cancel FileUpload when FileSizeMax is 
exceeded



I know what you're using.  Filters still use the servlet API to do their 
work.  Try setting that setting they were talking about in your JBoss 
server. 

On Jan 28, 2013, at 7:03 AM, kunze@dakosy.de wrote:

> Hi James,
> 
> I'am working with a filter (FileUploadFilter) and not with servlets 
> directly. This FileUploadFilter implements the "javax.servlet.Filter" 
> interface.
> 
> Best Regards
> ----------------------------------------------------------------- 
> 
> 
> 
> Von:    James Carman <jcarman@carmanconsulting.com>
> An:     "Commons Users List" <user@commons.apache.org>
> Datum:  28.01.2013 12:09
> Betreff:        Re: [fileupload] Cancel FileUpload when FileSizeMax is 
> exceeded
> 
> 
> 
> The container itself has to stop this.  Have you tried this:
> 
> 
http://www.ryanchapin.com/fv-b-4-667/Adding-MultipartConfig-Configuration-to-web-xml-in-JBoss-6-x-for-a-Servlet-3-0-File-Upload-Servlet.html

> 
> 
> See if that helps. 
> 
> On Jan 25, 2013, at 6:18 AM, kunze@dakosy.de 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 
> file 
>> upload throws an FileSizeLimitExceededException for all files larger 
> than 
>> 10MB.
>> But the main problem is, that the whole file will be transferred over 
> the 
>> 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 
> enctype
>> ="multipart/form-data.
>> 
>> Best regards 
>> Anton
> 
> 


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



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