title: DWR File Upload Size Limit
body: <p>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.</p>
  
  <p>Here is what I have in my web.xml:</p>
  
  <pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;dwr&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;classpath:dwr-servlet.xml&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;fileUploadMaxBytes&lt;/param-name&gt;
      &lt;param-value&gt;5000&lt;/param-value&gt;
    &lt;/init-param&gt; 
  &lt;/servlet&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>I would appreciate any help.</p>