Page 1 of 1

struts 2 upload file size limitation seeting

PostPosted: Tue Mar 15, 2011 10:00 am
by haretu
In order to change theses settings you define a constant in your applications struts.xml file like so:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.multipart.maxSize" value="1000000" />
...
</struts>