struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Brin <ab...@digitalantiquity.org>
Subject Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152
Date Mon, 13 Mar 2017 15:00:52 GMT
what version of struts are you using?  There was a bug for a version that
limited the size, I believe.

On Mon, Mar 13, 2017 at 7:57 AM, Emi <emilu@encs.concordia.ca> wrote:

> Hello,
>
> Tried to upload file, and always got the following errors:
>
> Request exceeded allowed size limit! Max size allowed is: 2,097,152 but
> request was: 2,463,633!
>
>
>
> May I know where I missed the steps please?
>
> 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">
>
> Thanks a lot!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
_________________________________________________________
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message