I did plenty of research on DWR (www.directwebremoting.org) to understand how the 'fileUploadMaxBytes' initialization parameter can be used to limit file upload sizes without success.
Here is what I have in my web.xml:
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:dwr-servlet.xml</param-value>
</init-param>
<init-param>
<param-name>fileUploadMaxBytes</param-name>
<param-value>5000</param-value>
</init-param>
</servlet>
You will not that I am not overriding the default FileUpload implementations and according to the DWR site: (http://directwebremoting.org/dwr/documentation/server/configuration/dwrxml/converters/file.html), this is all I need to do.
I would appreciate any help.