I tried uploading files to the server deployed in azure web app service. In local it's working fine and when it comes to azure it throwing some exception. FileSizeLimitExceededException.
This upload service is developed in JAVA Spring boot version 1.5.8
Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes
spring:
http:
multipart:
max-file-size: 10MB
max-request-size: 100MB
enabled: true
Also tried some @Bean entity configuration also. It doesn't help me out.
Tried web.config with custom server.xml file specifying maxPostSize.
I need to set the maximum upload limit to 10MB.
SnakeYAMLlibrary on your classpath?