Possible Solution for Ignored MultiPartFile Locations in Spring Boot 1.4

We’ve been using the sweet BlueImp JQuery File Upload Plugin on NixMash Spring which has been working great with Spring Boot 1.3.x. Here’s a shot of the plugin and configuration details with Spring MVC.

Then we discovered that our application.properties multipart.location property was being ignored in Spring Boot 1.4.0 with files being saved to the depths of /tmp/tomcat/something/and/something/ROOT instead of the /tmp directory on Spring Multipartfile transferTo().

Okay, I’ll make this quick. If you go to the excellent Spring Docs, in the Appendix A Common application properties for Spring Boot 1.3.5 you’ll see this.

In the current Appendix A you’ll see this. Notice the spring.http prefix.

Like I said, a possible solution. “Worked on my machine…”

Source Code Notes for this Post

All source code discussed in this post can be found in my NixMash Spring GitHub repo and viewed online here.