Tomcat 10.1.26 on Windows

 

I getting a Tomcat error page (HTTP 413 - Payload too large) when trying to
upload a 372 Mb file for parsing and loading in my web app.

 

I have done the following:

Web.xml is modified for my Spring app as below

    <servlet>

        <servlet-name>dispatcher</servlet-name>

 
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-cl
ass>

        <load-on-startup>1</load-on-startup>

        <multipart-config>

            <max-file-size>1048576000</max-file-size> <!-- 1 GB -->

            <max-request-size>1048576000</max-request-size> <!-- 1 GB -->

            <file-size-threshold>0</file-size-threshold> <!-- 0 bytes -->

        </multipart-config>

    </servlet>

 

 

Server.xml is modified as below

    <Connector port="80" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443"

               maxParameterCount="1000"

               maxSwallowSize = "-1"

               />

 

 

 

Not sure what else there is to do.

Charlie DiDonato

Reply via email to