Why does aliyun OSS set the upload file size, but it still has the problem of exceeding the file size

232 Views Asked by At

application.yml configure

Error information

Nginx is also configured to upload files with a size of 50m,But more than 1M images, will upload failure, why?Help me? thanks

1

There are 1 best solutions below

2
On

Please have a try:

Before Spring Boot 2.0:

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

After Spring Boot 2.0:

spring.servlet.multipart.max-file-size=50MB
spring.servlet.multipart.max-request-size=50MB