FileUploadBase$SizeLimitExceededException apache tomcat

后端 未结 4 1806
不知归路
不知归路 2021-02-04 04:36

Im trying to upload file from a JSP file and I get the following error in catalina.out. As specified in many blogs, I increased the the max-file-size under webapps/manager/WEB-

4条回答
  •  遇见更好的自我
    2021-02-04 05:07

    I had the same problem. I solved it by setting the parameter maxPostSize in the http server tomcat connector located in /conf/server.xml as follows:

    
    

    Set maxPostSize to 52428800 increase the upload file size to 50 MB. By default it's set to 2 MB.

    For more explanation, read this: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html

提交回复
热议问题