Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="4294967295"></requestLimits>
      </requestFiltering>
    </security>
</system.webServer>
share|improve this answer

Your Answer

 
discard

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.