Hello Pratim Das, Partha C,
Thanks for posting your question in the Microsoft Q&A forum.
You'll need to adjust several settings. Here's how to address this issue:
- Increase the request body size limit in your Java application, if you're using Spring Boot, add the following to your
application.properties
filespring.servlet.multipart.max-file-size=200MB
spring.servlet.multipart.max-request-size=200MB
- Update the web.config file in your project's root directory with the following content
```xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="209715200" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
- In the Azure Portal, go to your App Service and add the following application setting
WEBSITE_WEBROOT_MAX_BODY_SIZE=209715200
- Since large payloads may take longer to process, consider increasing the timeout settings in your App Service configuration:
WEBSITE_HTTPLOGGING_RETENTION_DAYS=7
WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES=30
***
Please don't forget to close up the thread here by **upvoting** and **accept it as an answer** if it is helpful