当我试图将excel文件上传到数据库时,我正面临着这个问题。
这是我的测试站点Excel工作表测试站点的链接
有一个名为largedata.xlsx的文件,我正试图上传这个文件。这里
这需要一段时间,但之后会显示错误消息POST requests, or the amount of data provided in the request exceeds the capacity limit.。
我对此进行了搜索,并已经在post_max_size文件中更新了upload_max_filesize和.htaccess文件,您可以查看info.php以了解此细节。但我仍然面临着这个问题。
.htaccess
php_value post_max_size xxM
php_value upload_max_filesize xxM用值替换xx。
发布于 2017-10-07 10:40:38
当请求体大于服务器被配置为允许时,会发生413个错误。以下是如何根据您的web服务器修复它:
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)https://stackoverflow.com/questions/46618642
复制相似问题