Andrey Yaskulsky
Andrey Yaskulsky

Reputation: 2516

Spring multipart file max size

I'm using Spring MultipartFile in my Spring MVC controller. I know that there is a property which is responsible for handling max file size of MultipartFile, however I was unable to find out what is the maximum possible value for the property, I mean what is a max files size I can download via MultipartFile?

Upvotes: 2

Views: 4362

Answers (1)

Ali Dehghani
Ali Dehghani

Reputation: 48133

however I was unable to find out what is the maximum possible value for the property

Default value for maxFileSize of MultipartConfig is -1, which means unlimited.

I mean what is a max files size I can download via MultipartFile?

These abstractions are designed to handle file uploads, they're not for downloading files. Checkout the Spring Documentation for more information.

Upvotes: 1

Related Questions