You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ladda Filer <la...@yahoo.se> on 2007/02/17 03:08:53 UTC

[S2] how do I handle upload larger than struts.multipart.maxSize

Hi,
I use the default FileUploadInterceptor in Struts2 to handle multipart 
requests.

When an upload exceeds the defined value of struts.multipart.maxSize
I see this in my logs...

02:52:04,899 ERROR [MultiPartRequest] 
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: 
the request was rejected because its size (2206481) exceeds the 
configured maximum (2097152)
02:52:04,899 ERROR [FileUploadInterceptor] the request was rejected 
because its size (2206481) exceeds the configured maximum (2097152)

How can I catch this and still using the default interceptor?

Kind Regards,  Ladda von Filer


__________________________________________________
Använder du Yahoo!?
Är du trött på spam?  Yahoo! E-post har det bästa spamskyddet som finns 
http://se.mail.yahoo.com 

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


Re: [S2] how do I handle upload larger than struts.multipart.maxSize

Posted by Tom Schneider <sc...@gmail.com>.
Please see the section on Parameters:
http://struts.apache.org/2.x/docs/file-upload-interceptor.html

And the multipart section of:
http://struts.apache.org/2.x/docs/strutsproperties.html

Nagraj Rao wrote:
> cant we override the max size in the struts.properties file... i guess 
> we should be able to...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


Re: [S2] how do I handle upload larger than struts.multipart.maxSize

Posted by Nagraj Rao <na...@sigmainfo.net>.
cant we override the max size in the struts.properties file... i guess we 
should be able to... 


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