首页 > 其他分享 >the server responded with a status of 413 (Request Entity Too Large) 解决

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

时间:2022-08-20 11:22:06浏览次数:60  
标签:status Request server Large nginx Too Entity

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

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

解决方法:

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

重启nginx问题就解决了。

 

标签:status,Request,server,Large,nginx,Too,Entity
From: https://www.cnblogs.com/yclh/p/16607375.html

相关文章