I have a Django-based application that has the functionality to upload the file. We used to deploy the same in the azure web app. For the small file (max file size I have tried with 20 MB) works in both local as well as server. But if it is a large file (tested with 495 and 990 MB) it works in a local environment. But once deployed into azure it is not working. After some time it is throwing 504 gateway timeout.
Now I was reading different articles, issues on large file handling. In every article/post it seems we have to implement file chunking mechanism. But what I don't understand why it is working in local and why it is not working once it is deployed on the server.
Is there any setting needs to be changed in Django or in HTML to make it happen?