I am sending to controller multipartfile and when logic in controller is completed spring invokes error:
2015-09-10 10:41:05 WARN  (StandardServletMultipartResolver.java:91) - Failed to perform cleanup of multipart items
java.io.IOException: UT010015: Could not delete file ....\Path\undertow6870903013120486522upload
    at io.undertow.servlet.spec.PartImpl.delete(PartImpl.java:111)
My controller:
@RequestMapping(value = "api/{name}/file", method = RequestMethod.POST,consumes="multipart/form-data")
 public ResponseEntity<?> receiveFile(@RequestParam(value = "file") MultipartFile multipartFile,
@PathVariable("name") String name) throws IOException {
    logic here
    return new ResponseEntity<>(HttpStatus.OK);
}
I am using AngularJS (ng-file-upload module) to send file:
file.upload = Upload.upload({
                            url: sUrl,
                            method: 'POST',
                            headers: {'Content-Type': '"multipart/form-data'},
                            file: file,
                            fileFormDataName: 'file'
                        });
                Are you using Tomcat or Undertow as your application server?
If it's Undertow, it may just be a benign exception informing you that the temporary file can't be deleted because it's already been deleted (source: https://github.com/spring-projects/spring-boot/issues/3966 which also mentions a bug ticket open UNDERTOW-542 ).
I ran into this same issue when running a jHipster-based project using the fast profile, which uses Undertow. Everything worked as expected, but this error was thrown. If I used the dev profile, which uses Tomcat, no error was thrown.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With