Increase the maximum request length in a Azure Api App

一个人想着一个人 提交于 2019-12-23 17:12:24

问题


I have created an Azure Api App which I will use to upload files. These files will be > 4mb hence the need to increase the maximum request length. I have added the following to Web.config:

 <system.web>
    <httpRuntime executionTimeout="7200" targetFramework="4.5" maxRequestLength="2097152" />
  </system.web>

I have also added:

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2097152000" />
      </requestFiltering>
    </security>
  </system.webServer>

Yet I still get the exception Maximum request length exceeded.. Am I missing something? Is there something else I can try?

Thanks!


回答1:


Unfortunately, this is not possible yet. Except the limitation on the API App, there is also a limitation on the Gateway which is an ASP.NET app as well. You can change your API App but you cannot change the Gateway.

I know the team is looking into providing a solution to that but I don't have an ETA to share at this point.



来源:https://stackoverflow.com/questions/31339416/increase-the-maximum-request-length-in-a-azure-api-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!