title: Struts 2 File Upload Interceptor configuration problems
body: <p>I'm having two problems when trying to configure the Struts 2 File Upload Interceptor in my application. I want to change the parameter <code>maximumSize</code> (the default value is 2 MB, I need it to be 5 MB) and the message resource <code>struts.messages.error.file.too.large</code> (the app locale is pt_BR, so the message is in portuguese, not english).</p>
  
  <p>The app current configuration follows:</p>
  
  <p><strong>struts.properties</strong></p>
  
  <pre><code>struts.locale=pt_BR 
  struts.custom.i18n.resources=MessageResources
  </code></pre>
  
  <p><strong>struts.xml</strong></p>
  
  <pre><code>&lt;package name="default" namespace="/" extends="struts-default"&gt;
      &lt;interceptors&gt;
          &lt;interceptor name="login" class="br.com.probank.interceptor.LoginInterceptor"/&gt;
          &lt;interceptor-stack name="defaultLoginStack"&gt;
              &lt;interceptor-ref name="login" /&gt;
              &lt;interceptor-ref name="defaultStack"/&gt;
          &lt;/interceptor-stack&gt;
      &lt;/interceptors&gt;
  
      &lt;default-interceptor-ref name="defaultLoginStack" /&gt;
      ...
  &lt;/package&gt;
  
  ...
  &lt;package name="proposta" namespace="/proposta" extends="default"&gt;
      &lt;action name="salvarAnexoProposta" method="salvarAnexoProposta" class="br.com.probank.action.AnexoPropostaAction"&gt;
          &lt;interceptor-ref name="defaultLoginStack"&gt;
              &lt;param name="fileUpload.maximumSize"&gt;5242880&lt;/param&gt;
          &lt;/interceptor-ref&gt;
          &lt;result name="success"&gt;/jsp/listagemAnexosPropostaForm.jsp&lt;/result&gt;
          &lt;result name="input"&gt;/jsp/crudAnexoPropostaForm.jsp&lt;/result&gt;
          &lt;result name="error"&gt;/jsp/error.jsp&lt;/result&gt;
          &lt;result name="redirect" type="redirect"&gt;${redirectLink}&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p><strong>MessageResources.properties</strong></p>
  
  <pre><code>...
  struts.messages.error.file.too.large=O tamanho do arquivo...
  </code></pre>
  
  <p>There is nothing special about my Action implementation and my JSP code. They follow the example found <a href="http://struts.apache.org/2.1.6/docs/file-upload-interceptor.html" rel="nofollow noreferrer">http://struts.apache.org/2.1.6/docs/file-upload-interceptor.html</a>. When I try to upload a file with more than 5 MB the app shows the message "the request was rejected because its size (6229458) exceeds the configured maximum (2097152)" - the default File Upload message with the default maximumSize value.</p>
  
  <p>I try to put the message resource <code>struts.messages.error.file.too.large</code> in a struts-messages.properties but the message didn't change after that. What is the proper way to configure the File Upload Interceptor? I'm using Struts 2 2.1.7. Thanks in advance.</p>