I'm not sure, but I think the tomcat configuration is case sensitive.
Can you please try "maxPostSize" instead of "maxpostsize" in your connector
config?
Have updated to the following and succeeded this time (struts2: most recent version).

(1) server.xml
     Change to maxPostSize
(2) struts.xml
       <interceptor-ref name="defaultStack">
       </interceptor-ref>
       <constant name="struts.multipart.maxSize" value="90000000" />
Thanks a lot for the help!

struts.xml
<struts>
    <constant name="struts.multipart.maxSize" value="90000000" />
    <package name="Privileged" namespace="/Action" extends="security-fix"
strict-method-invocation="false">
    ....

<action name="*ProcessActionUploadPdf"  method="{1}"
class="ProcessActionUploadPdf">
          <interceptor-ref name="basicStack"/>
          <interceptor-ref name="fileUpload">
             <param name="maximumSize">90000000</param>
          </interceptor-ref>

          <result name="view_pdf" type="stream">
              <param name="contentType">application/pdf</param>
              <param name="inputName">fileInputStream</param>
              <param name="contentDisposition">atta
chment;filename="${filename}"</param>
              <param name="bufferSize">1024</param>
           </result>
           .....

tomcat7 server.xml:
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
                redirectPort="8443"
                maxpostsize="90000000">




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to