- The http POST methods will use these temp locations to store the post data.
- Some OSs like centOS will delete the temp dir frequently. So, even you set that location’s permission, after some time that dir will be removed by the OS. And after you reboot, the temp dir will be different.
You can set the multipart location in application.yml:
spring:
http:
multipart:
location: /data/upload_tmp
Update
As per comment by Vivek Sethi above property didn’t work for me but the below one.
spring.servlet.multipart.location=/data/upload_tmp