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">attachment;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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org