Tag Archives: [D:tomcatworkCatalinalocalhostROOT]

Org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: Temporary upload path [D:\tomcat\work\Catalina\localhost\ROOT] is Invalid

When the springboot project is deployed to tomcat, there is a problem uploading attachments:

Error message:

[http-nio-80-exec-544] 2021-09-29 15:54:20 (GlobalExceptionHandler.java:372) Run Error
org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; 
nested exception is java.io.IOException: Temporary upload path [D:\tomcat\work\Catalina\localhost\ROOT] is Invalid

Error reporting reason:

From the abnormal information, the temporary directory of the uploaded file is invalid, and there is no more to view under Tomcat

Go to Tomcat to check that there is no root folder

Solution:

1. New corresponding folder

2. Restart the service