title: Max file size with resteasy and multipart/form-data request
body: <p>How can I control the max file size and/or the max request size when using resteasy to handle a multipart/form-data request ?</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>@POST
  @Path("/somerestresource")
  @Consumes(MediaType.MULTIPART_FORM_DATA)
  public Response handleForm(@MultipartForm MyForm form) {
      ...
  }
  </code></pre>
  
  <p>With a Servlet I can control stuff with the <code>@MultipartConfig</code> annotation.</p>
  
  <p>So I'm thinking about bypassing resteasy and using <code>@Context</code> to inject a <code>HttpServletRequest</code> and having my servlet configured inside the web.xml but I'm unsure of the side effects.</p>