Issue description
When a multipart upload exceeds the configured size limit, Tomcat may reject it while parsing request parameters before Grails’ multipart resolver or controller is invoked. As a result, the application cannot handle the failure through normal validation or error handling and cannot render the expected form error.
The request may also be wrapped by Spring Security, hiding Grails’ MultipartHttpServletRequest API and causing valid uploads using request.getFile(...) or params binding to fail.
Grails should resolve multipart requests early and preserve the resolved multipart request so both oversized-upload errors and valid file uploads remain available to application code.
Issue description
When a multipart upload exceeds the configured size limit, Tomcat may reject it while parsing request parameters before Grails’ multipart resolver or controller is invoked. As a result, the application cannot handle the failure through normal validation or error handling and cannot render the expected form error.
The request may also be wrapped by Spring Security, hiding Grails’ MultipartHttpServletRequest API and causing valid uploads using request.getFile(...) or params binding to fail.
Grails should resolve multipart requests early and preserve the resolved multipart request so both oversized-upload errors and valid file uploads remain available to application code.