phpiishttp-status-code-413

IIS Server : Received error code 413 when posting large data in the request


I hosted WebAPI on the IIS which is written in laravel. I have one request size of 60 MB. I am trying to send this data to the server but receiving 413 errors - "Request Entity Too Large".

enter image description here

I updated php.ini and set the below value

I also updated uploadReadAheadSize of the IIS Server and set "80485760"

enter image description here

Edit

After updating php.ini and server config, I restarted the server.


Solution

  • You can try below settings:

    <system.web>
      <httpRuntime maxRequestLength="1048576" />
    </system.web>
    <system.webServer>
      <security>
        <requestFiltering>
          <requestLimits maxAllowedContentLength="1073741824" /> 
        </requestFiltering>
      </security>
    </system.webServer>