Increase max request length in Azure Api app

I have created an Azure Api application that I will use to upload files. These files will be> 4mb, hence the maximum request length must be increased. I added the following to the Web.config:

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

      

I also added:

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

      

However, I am still getting the exception Maximum request length exceeded.

. Am I missing something? Is there anything else I can try?

Thank!

+3


source to share


1 answer


Unfortunately, this is not yet possible. In addition to the restrictions on the API application, there is also the restriction on the Gateway, which is also an ASP.NET application. You can change your API application, but you cannot change the gateway.



I know the team is looking for solutions to this, but I don't have an ETA to exchange at this stage.

+1


source







All Articles