Error “Unable to process parts as no multi-part configuration has been provided” when uploading file [duplicate]
问题 This question already has answers here : How to upload files to server using JSP/Servlet? (12 answers) Closed 3 years ago . I am trying to upload an file via a form in a JSP file, but I'm getting this error. The servlet already has the @MultipartConfig notation. I'm using servlet 3.0 and apache tomcat 8. Error message: java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided on line Collection<Part> parts = request.getParts();` 回答1: I had to