Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152

2017-03-13 Thread Emi

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
   
   
   
Thanks a lot for the help!



struts.xml






  
  
 9000
  

  
  application/pdf
  fileInputStream
  atta
chment;filename="${filename}"
  1024
   
   .

tomcat7 server.xml:






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



Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152

2017-03-13 Thread Johannes Geppert
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?

Best Regards

Johannes

#
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2017-03-13 15:57 GMT+01:00 Emi :

> 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
> 
>
> strict-method-invocation="false">
>
>
>  class="ProcessActionUploadPdf">
>  
>  
> 9000
>  
>
>  
>  application/pdf
>  fileInputStream
>  atta
> chment;filename="${filename}"
>  1024
>   
>   .
>
> tomcat7 server.xml:
> redirectPort="8443"
>maxpostsize="9000">
>
> Thanks a lot!
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152

2017-03-13 Thread Adam Brin
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  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
> 
>
> strict-method-invocation="false">
>
>
>  class="ProcessActionUploadPdf">
>  
>  
> 9000
>  
>
>  
>  application/pdf
>  fileInputStream
>  atta
> chment;filename="${filename}"
>  1024
>   
>   .
>
> tomcat7 server.xml:
> redirectPort="8443"
>maxpostsize="9000">
>
> Thanks a lot!
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


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