你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

the server responded with a status of 413 (Request Entity Too Large) 解决

2022/8/20 11:23:09

前端上传文件,本地测试好的,放到服务器上出现了这个错误:the server responded with a status of 413 (Request Entity Too Large)

问题原因:服务器上使用了nginx,是nginx做了大小的限制

解决方法:

 client_max_body_size  100M; #添加这一行代码

重启nginx问题就解决了。