On Saturday 13 June 2009 10:34:53 pm tatan123 wrote:
> We want to restrict the file upload size to 2 MB. While doing testing it
> seems we can upload a 100 MB file, after that struts2 showing message that
> the uploaded file exceeds the max file size limit. Is there any way struts2
> can show the error message without full file upload...
>
> Thanks

I could be wrong, but if you are talking about the temp file generated as the 
upload takes place, then you might be better off setting the max post size of 
your application server. In Tomcat, you can use the maxPostSize attribute of 
the connector element.

-Wes
-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


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

Reply via email to