Hello
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Regarding your explanation:
You can adjust the maxRequestBodySize
on your Application Gateway to handle larger file uploads using Azure CLI, for example - https://learn.microsoft.com/en-us/azure/application-gateway/configuration-overview#http-settings:
az network application-gateway http-settings update \
--gateway-name myAppGateway \
--resource-group myResourceGroup \
--name appGatewayBackendHttpSettings \
--max-request-body-size 10485760 # For 10MB
Also, make sure that both the client request timeout and the backend timeout settings on the AGW are long enough to accommodate the upload, the example shows Azure CLI bash command:
az network application-gateway http-settings update \
--gateway-name myAppGateway \
--resource-group myResourceGroup \
--name appGatewayBackendHttpSettings \
--timeout 180 # Increase to 3 minutes, or adjust as needed
Other things you can do is to check Logs for Patterns, Check NodeJS API Scaling, and check Client-Side Request Behavior to handle multiple and serial request. https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-troubleshooting-502?source=recommendations
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.