SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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