How to configure Multipart file size in application.yml?

Viewed 115

If I want to set the multipart file to take an infinite size of file to upload, how should I configure the application.yml file to set the same?

1 Answers

In addition to configuring max file size, you may also need to configure max request size if you have a single file that's greater than 10MB or you want to upload multiple files in the same request with sizes that total more than 10MB.

The exact properties that need to be used depend on the version of Spring Boot that you are using as they changed in 1.4:

It's already answered in multi-part file size in applicaiton.yaml

Related