How to set the max size of upload file
Also in Spring boot 1.4, you can add following lines to your application.properties to set the file size limit: spring.http.multipart.max-file-size=128KB spring.http.multipart.max-request-size=128KB for spring boot 2.x and above its spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB Worked for me. Source: https://spring.io/guides/gs/uploading-files/ UPDATE: Somebody asked the differences between the two properties. Below are the formal definitions: MaxFileSize: The maximum size allowed for … Read more