Nginx is also configured to upload files with a size of 50m,But more than 1M images, will upload failure, why?Help me? thanks
Asked
Active
Viewed 178 times
1 Answers
0
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

AhahaGe
- 86
- 4
-
Thank you, but the above image of application.yml configuration has been configured. You can click it to have a look – boshao686 Jun 24 '21 at 03:21
-
yes, i clicked and saw you have add spring.servlet.multipart.max-file-size=50MB , could u please add spring.servlet.multipart.max-request-size=50MB this into you conf file, please have a try. – AhahaGe Jun 24 '21 at 03:29