Take a backup of the existing web.xml from uwc-deployed-path/WEB-INF/web.xml.
Edit the web.xml file at uwc-deployed-path /WEB-INF/web.xml.
Provide the configuration for MultipartFormServletFilter in web.xml as indicated in bold in code example 5-2.
<web-app\>
..
..
<filter\>
<filter-name\>MultipartFormServletFilter</filter-name\>
<filter-class\>com.sun.uwc.calclient.MultipartFormServletFilter</filter-class\>
..
..
<init-param\>
<param-name\>fileSizeHardLimit</param-name\>
<param-value\>10485760</param-value\>
<description\>Ten mega bytes</description\>
</init-param\>
<init-param\>
<param-name\>requestSizeLimit</param-name\>
<param-value\>10485760</param-value\>
<description\>Ten mega bytes</description\>
</init-param\>
<init-param\>
<param-name\>fileSizeLimit</param-name\>
<param-value\>10485760</param-value\>
<description\>Ten mega bytes</description\>
</init-param\>
<init-param\>
<param-name\>failureRedirectURL</param-name\>
<param-value\>put your url here</param-value\>
<description\>Request is redirected to this url when
uploaded file size crosses
fileSizeHardLimit value</description\>
</init-param\>
..
..
</filter\>
..
..
..
..
</web-app\>
|
Restart web container to have the changes take effect.