This one requires a bit of explaination.
When writing a Servlet that will enable users to upload files from a form you need to be able to limit both the size of the file(s) and the entire multipart/form-data request. The Servlet 3.0 spec now includes a @MultipartConfig annotation (which can also be specified in web.xml, see other post in this blog).
Based on the Servlet 3.0 spec here is what is supposed to happen.
- The user submits a multi-part