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".

I updated php.ini and set the below value
I also updated uploadReadAheadSize of the IIS Server and set "80485760"

After updating php.ini and server config, I restarted the server.
You can try below settings:
<system.web>
<httpRuntime maxRequestLength="1048576" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
IIS has a limit for the size of the files users can upload to an application. If the file size exceeds the limit, the application will throw “Error in HTTP request, received HTTP status 413 (Request Entity Too Large)” error.
The quickest solution is to increase the upload size limit. IIS uses uploadReadAheadSize parameter in applicationHost.config and web.config files to control this limit.
Steps to change the value of this parameter:
Reference: https://techcommunity.microsoft.com/t5/iis-support-blog/solution-for-request-entity-too-large-error/ba-p/501134
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With