Reputation: 1513
I'm facing this issue on 000webhost when I'm trying to upload excel file into database.
here is link of my test site Test site for Excel Sheets
There is a file with name of largedata.xlsx
I'm trying to upload this file. Here
It take some time but after this it show error message POST requests, or the amount of data provided in the request exceeds the capacity limit.
I searched about this and already update the post_max_size
and upload_max_filesize
in .htaccess
file you can check info.php
for this detail. But still I'm facing this issue.
.htaccess
php_value post_max_size xxM
php_value upload_max_filesize xxM
Replace xx with your value.
Upvotes: 1
Views: 9289
Reputation: 41
Just for someone else having this issue. I had mod security installed on my server and it was blocking the request with the following error - Request body no files data length is larger than the configured limit (1048576).. Deny with code (413) strong text
You can either disable mod security temporarily or update the relevant limit.
Upvotes: 0
Reputation: 1
413 errors occur when the request body is larger than the server is configured to allow. Here’s how you can fix it, depending on your web server:
Apache: Set the LimitRequestBody directive in either your httpd.conf file or a local .htaccess file. (https://stackoverflow.com/a/3719358/1688568)
Nginx: Set the client_max_body_size directive in nginx.conf (http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/)
IIS: Set the uploadreadaheadsize config setting (http://blogs.msdn.com/b/jiruss/archive/2007/04/13/http-413-request-entity-too-large-can-t-upload-large-files-using-iis6.aspx)
Upvotes: 0