I am trying to implement functionality by which you can post a large file (85MB+) to an autohosted app.

I have tested locally and the functionality works. As soon as I deploy to O365, large files start returning a 502 error.

I have modified the httpRuntime element in the web.config, so that is not the issue.

Has anyone seen this before? Workaround?

EDIT: 35MB causes a 404.


Found my answer. Turns out it was being blocked by request filtering. Add the below to web.config to resolve issue.

        <requestLimits maxAllowedContentLength="4294967295"></requestLimits>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.