We were having a requirement to upload documents form webpage which could be of more than 2M. By default the webwork supports only uploading max 2M of file. To increase these size, you need to change the settings at two place. These two places are
webwork.properties file and
xwork.xml file
Put this setting in webwork.properties
webwork.multipart.maxSize=4194304 //this denotes 4M (specify as per your requirement)
Put this setting in xwork.xml
<interceptor-ref name="fileUpload">
<param name="maximumSize">4194304</param>
</interceptor-ref> //this denotes 4M (specify as per your requirement)
No comments:
Post a Comment