376324 <max-file-size> is not respected in <multipart-config>

This commit is contained in:
Jan Bartel 2012-04-10 15:03:38 +10:00
parent ec77ba41ef
commit 62713fda2f
1 changed files with 6 additions and 2 deletions

View File

@ -591,6 +591,10 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
if (!isAsyncSupported())
baseRequest.setAsyncSupported(false);
MultipartConfigElement mpce = ((Registration)getRegistration()).getMultipartConfig();
if (mpce != null)
request.setAttribute(Request.__MULTIPART_CONFIG_ELEMENT, mpce);
servlet.service(request,response);
servlet_error=false;
}