title: Upgrading to Tomcat 8 breaks MultipartFile upload
body: <p>I'm using Spring Boot. The method I'm calling in my controller looks like this:</p>
  
  <pre><code>@RequestMapping(value = "/{customerId}/files/{id}/addFile", method = RequestMethod.POST,
          produces = "application/json; charset=UTF-8")
  @ResponseBody
  public Response uploadFile(@PathVariable String customerId, @PathVariable String id,
          @RequestParam("uploadedFile") MultipartFile file) throws IOException {
  </code></pre>
  
  <p>After upgrading to Tomcat 8 I'm getting the following error when calling this method. I set a breakpoint on the first line which is never reached.:</p>
  
  <blockquote>
    <p>org.springframework.web.util.NestedServletException: Request
    processing failed; nested exception is
    org.springframework.web.multipart.MultipartException: Could not parse
    multipart servlet request; nested exception is java.io.IOException:
    org.apache.tomcat.util.http.fileupload.FileUploadException: Stream
    closed</p>
  </blockquote>
  
  <p>Has anyone come across this issue?</p>