You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by punter <p_...@rediffmail.com> on 2015/12/09 09:38:00 UTC

Allow max. file upload size of more than 2gb in struts 2

Hello,
I am using Struts 2.1 in my project. For the file upload process, is it possible to supersede the normal 2 gb file limit for struts2.The struts.xml maxsize element in my project is as follows :
&nbsp;&lt;constant name="struts.multipart.maxSize" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value="2147483648" /&gt;
Please update me the process to allow more than 2gb (Upto 3 or 4 gb) file uploads in struts 2.1.
Thanks,Saurabh&nbsp;

Re: Allow max. file upload size of more than 2gb in struts 2

Posted by Christoph Nenning <Ch...@lex-com.net>.
> Hello,
> I am using Struts 2.1 in my project. For the file upload process, is
> it possible to supersede the normal 2 gb file limit for struts2.The 
> struts.xml maxsize element in my project is as follows :
> &nbsp;&lt;constant name="struts.multipart.maxSize" &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value="2147483648" /&gt;
> Please update me the process to allow more than 2gb (Upto 3 or 4 gb)
> file uploads in struts 2.1.
> Thanks,Saurabh&nbsp;


Usually application-servers or servlet-containers have their own max size 
limit. Have you checked that?

E.g. tomcat has a parameter maxPostSize (if you are using that one):

http://tomcat.apache.org/tomcat-8.0-doc/config/http.html


Regards,
Christoph


This Email was scanned by Sophos Anti Virus

Re: Allow max. file upload size of more than 2gb in struts 2

Posted by Adam Brin <ad...@asu.edu>.
You may also want to check the docs:

https://struts.apache.org/docs/file-upload.html

which has a section on size limits.

> On Dec 9, 2015, at 1:38 AM, punter <p_...@rediffmail.com> wrote:
> 
> 
> Hello,
> I am using Struts 2.1 in my project. For the file upload process, is it possible to supersede the normal 2 gb file limit for struts2.The struts.xml maxsize element in my project is as follows :
> &nbsp;&lt;constant name="struts.multipart.maxSize" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value="2147483648" /&gt;
> Please update me the process to allow more than 2gb (Upto 3 or 4 gb) file uploads in struts 2.1.
> Thanks,Saurabh&nbsp;


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