Connection terminated as request was larger than 10485760

Spring Boot has the following default properties

spring.servlet.multipart.max-file-size=1MB # Max file size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.
spring.servlet.multipart.max-request-size=10MB # Max request size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.

10485760 = 10MB

See the file upload Spring Boot guide :


For Spring Boot 1.5.13.RELEASE try this properties:

spring.http.multipart.max-request-size=100MB
spring.http.multipart.max-file-size=100MB