An easy way to increase the number of form input-fields past 10 for a multipart request in Tomcat 11.0.8 would be:
/usr/local/tomcat/conf/server.xml ... <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxPartCount="100" /> <!— * add here * —> ... Mark, is there a solution in HttpServlet#doPost, #init(), or @MultipartConfig? Greetings, Fabian Mark Thomas wrote - Freitag, 13. Juni 2025 18:46:12 MESZ > https://tomcat.apache.org/tomcat-11.0-doc/config/http.html > > You'll need to increase maxPartCount > > Mark > > On 13/06/2025 15:13, Matthias Reischenbacher wrote: >> Hi, >> >> after upgrading from 11.0.6 to 11.0.8 a form multi part POST stopped >> working with the exception: >> >> org.apache.tomcat.util.http.InvalidParameterException: >> org.apache.tomcat.util.http.fileupload.impl.FileCountLimitExceededException: >> attachment >> org.apache.catalina.connector.Request.doParseParameters(Request.java:2861) >> org.apache.catalina.connector.Request.parseParameters(Request.java:2815) >> org.apache.catalina.connector.Request.getParameter(Request.java:1097) >> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:152) >> >> jakarta.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:160) >> >> >> May this be related to the following change? >> >> Update the internal fork of Apache Commons FileUpload to 1.6.0-RC1 >> (2025-06-05). (markt) >> >> The request body is as follows: >> >> ... >> Best regards, >> Matthias >> >> >> >> —————————————————————————————————— >> 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org