October 2018
Intermediate to advanced
590 pages
15h 5m
English
In this section, we will discuss how to save the uploaded file to the server's local file system, as well as save it to AWS S3.
The main API of file saving is the FileStorage interface, which has three methods:
The first method, saveAsTempFile(), is used to save the MultipartFile instance to the server's temp folder, which is specified in application.properties. This is useful when we need to create a thumbnail image before saving the file to S3. The second method, saveTempFile(), is used to save the temporary file to the final location, and the last method, saveUploaded(), is used to save the uploaded ...
Read now
Unlock full access