"the request was rejected because its size " Spring, tomcat
spring:
http:
multipart:
enabled: true
max-file-size: 50MB
max-request-size: 50MB
or
spring.http.multipart.max-file-size=50MB
spring.http.multipart.max-request-size=50MB
Reference here
Hope it will works
Following are the ways based on version,
1'st :
spring.servlet.multipart.max-file-size=1000MB
spring.servlet.multipart.max-request-size=1000MB
2'nd :
spring.http.multipart.max-file-size=50MB
spring.http.multipart.max-request-size=50MB
3'rd :
multipart.enabled=true
multipart.max-file-size=100MB
multipart.max-request-size=100MB
For SpringBoot 1.5.7 till 2.1.2 the property need to set in application.properties file are:
spring.http.multipart.max-file-size=100MB
spring.http.multipart.max-request-size=100MB
Also make sure you have application.properties file in "resources" folder.