I am trying to tackle an issue I am where uploading files on a web-app that are above 30 MB are receiving a gateway timeout error.
Prior to that, the system was receiving a 404.13 Error, so I changed the web.config file to support much larger files by changing the maxAllowedContentLength
, this had worked initially. However, now it is receiving that 504 Error.
The way the system works:
A file is selected and uploaded to the web app using a third party uploader tool (this part works without issues).
That (
IFormFile
) is then processed by the web app to determine what type of file it is, and how to process it.Once complete, that file stream is sent to an Amazon S3 bucket in a
PutObjectAsync
request.
I believe the issue is occurring on step three, but this is hard to diagnose as it does not occur in a local environment. What is strange is that I can upload a 29 MB file without issue, and it is processed quickly, but the moment I go above that, it seems to hang on that last step. Has anyone had a similar issue before? What steps did you take to resolve it?
Edit: Previously 404.13 error.