FileUploadBase$SizeLimitExceededException apache tomcat

后端 未结 4 1800
不知归路
不知归路 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:16

    This is configured in web.xml for the manager app.

    Ex:

      
        HTMLManager
        org.apache.catalina.manager.HTMLManagerServlet
        
          debug
          2
        
        
          
          52428800
          52428800
          0
        
      
    

    https://github.com/apache/tomcat/blob/7.0.x/webapps/manager/WEB-INF/web.xml#L56-L57

    The manager app uses the Servlet 3.0 API. If you're using commons file upload directly, it's up to you and you need to configure this manually.

提交回复
热议问题