Home > Back-end >  IIS Server : Received error code 413 when posting large data in the request
IIS Server : Received error code 413 when posting large data in the request

Time:08-25

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

  • max_execution_time = 6000
  • upload_max_filesize = 1512M
  • max_input_vars = 5000
  • post_max_size = 1024M

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.

CodePudding user response:

Did you tried this steps?

https://techcommunity.microsoft.com/t5/iis-support-blog/solution-for-request-entity-too-large-error/ba-p/501134

I think you need set the maxRequestEntityAllowed on IIS

CodePudding user response:

You can try to compress the file before uploading or split the data into some smaller parts then try sending the request.

  • Related