Chris -----Original Message----- From: Christopher Schultz <ch...@christopherschultz.net> Sent: Tuesday, December 17, 2024 12:54 PM To: users@tomcat.apache.org Subject: Re: maximum file upload size
Charlie, On 12/16/24 5:02 PM, Charlie DiDonato wrote: > 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. Do you have a stack trace to look at? > 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</serv > let-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> Are you sure the "dispatcher" servlet is the one handling the request? -chris There is no stack trace in the Tomcat logs but I find this in my application log. It might NOT be Tomcat itself but rather my Spring configuration. I though it might be Tomcat because it was a Tomcat Error page. What do you think about below? Charlie 2024-12-17 13:38:56,682 TRACE o.s.w.s.DispatcherServlet [http-nio-80-exec-1] POST "/codereaper/snomed/snomedFileUpload", parameters={multipart}, headers={masked} in DispatcherServlet 'dispatcher' 2024-12-17 13:38:56,729 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver [http-nio-80-exec-1] Resolved [org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded] 2024-12-17 13:38:56,729 TRACE o.s.w.s.DispatcherServlet [http-nio-80-exec-1] No view rendering, null ModelAndView returned. 2024-12-17 13:38:56,729 DEBUG o.s.w.s.DispatcherServlet [http-nio-80-exec-1] Completed 413 PAYLOAD_TOO_LARGE, headers={} --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org