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
- 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"
Edit
After updating php.ini and server config, I restarted the server.
CodePudding user response:
Did you tried this steps?
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.