首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >发送请求,或请求中提供的数据量超过了容量限制。

问发送请求,或请求中提供的数据量超过了容量限制。
EN

Stack Overflow用户
提问于 2017-10-07 09:23:02
回答 1查看 5.1K关注 0票数 0

当我试图将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

代码语言:javascript
复制
php_value post_max_size xxM
php_value upload_max_filesize xxM

用值替换xx。

EN

回答 1

Stack Overflow用户

发布于 2017-10-07 10:40:38

当请求体大于服务器被配置为允许时,会发生413个错误。以下是如何根据您的web服务器修复它:

代码语言:javascript
复制
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)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46618642

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档