Make sure file storage directory exists before usage in DefaultPartHttpMessageReader #26790
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Affects: <Spring Framework version>
5.3.4
when i upload a file, it throw an exception
i found DefaultPartHttpMessageReader has a fileStorageDirectory property control the upload temp directory, it init as system temp dir, in linux, it is /tmp/spring-multipart, but os may sometimes remove the files in /tmp, when the spring-multipart is remove, then the upload action will fail, because the directory only init once at startup,
i have found the way to customize the path,
but it did not invoke in any place
please provide some way to config the path, so i can set a other place to store the tepm data to avoid the issure, the spring mvc config way is below
can you provide a similarity one in webflux?
The text was updated successfully, but these errors were encountered: