上载大于2 MB的文件时Apache文件上载异常
我在使用gwt上载文件时遇到以下异常,而在上载一个2MB的小文件时一切正常 这是我的server.xml文件的配置上载大于2 MB的文件时Apache文件上载异常,apache,tomcat,file-upload,gwtupload,Apache,Tomcat,File Upload,Gwtupload,我在使用gwt上载文件时遇到以下异常,而在上载一个2MB的小文件时一切正常 这是我的server.xml文件的配置 <Connector executor="tomcatThreadPool" port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" scheme="https" secure="true" connectionTimeout="40000" connectionUplo
<Connector executor="tomcatThreadPool" port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
scheme="https" secure="true" connectionTimeout="40000" connectionUploadTimeout="36000000" disableUploadTimeout="false" bufferSize="4096" acceptCount="250" clientAuth="false" sslProtocol="TLS"
/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" secure="true" executor="tomcatThreadPool"
enableLookups="false" acceptCount="250" connectionTimeout="40000" packetSize="21000" redirectPort="8443" bufferSize="4096" />
我的web.xml上载参数为:-
<context-param>
<!-- max size of the upload request -->
<param-name>maxSize</param-name>
<param-value>26214400</param-value>
</context-param>
最大尺寸
26214400
您还需要将其添加到web.xml中。大小以八位字节为单位
<context-param>
<param-name>maxSize</param-name>
<param-value>100000</param-value>
</context-param>
最大尺寸
100000
谢谢,但我已经这么做了,我设置的大小是26214400,远高于2MB。我想我应该在我的问题中提到这一点。这个问题解决了吗?我也面临着同样的问题@Caadi0
<context-param>
<param-name>maxSize</param-name>
<param-value>100000</param-value>
</context-param>