Ask Question Asked 6 years, 2 months ago. Viewed 9k times 3. This may either move the file in the filesystem, copy the file in the filesystem, or save memory-held contents to the destination file. Spring-boot Thymeleaf Multipart file upload. Active 7 months ago. In either case, the user is responsible for copying file contents to a session-level or persistent store as and if desired. this MultipartFile adapted to the Resource contract Since: 5.1; transferTo void transferTo(File dest) throws IOException, IllegalStateException. Here is my controller: @RestController public class CustomerDataController { @RequestMapping(value = "/customerFile", method = … A representation of an uploaded file received in a multipart request. I am trying to create a page that allows a user to select a file to be uploaded to my SpringMVC Controller. Transfer the received file to the given destination file. The file contents are either stored in memory or temporarily on disk.