Upload File is too big

From the documentation.
If MultipartProperties is available, the default value will be set from MultipartProperties#getMaxFileSize() that is equal to 1Mb. To increase maximum file size for all fields in the application use MultipartProperties#getMaxFileSize() property.

This isnt particularly helpful. Is there an example?

I think it’s just a typo in the documentation. It should have beenMultipartProperties#setMaxFileSize().

Here is an example from Vaadin of increasing the file size at a separate UI point

int maxFileSizeInBytes = 10 * 1024 * 1024; // 10MB
upload.setMaxFileSize(maxFileSizeInBytes);
1 Like

Additionally to Andrey Balabanov 's answer, you can use Spring Boot application properties to increase file size:

spring.servlet.multipart.max-file-size=20MB # max file size
spring.servlet.multipart.max-request-size=20MB # total size of files per request

The above properties apply to JAR deployment. For WAR deployment, you will most likely need to check the available properties of the server to which you are deploying.