前端上传文件,本地测试好的,放到服务器上出现了这个错误:the server responded with a status of 413 (Request Entity Too Large)
问题原因:服务器上使用了nginx,是nginx做了大小的限制
解决方法:

client_max_body_size 100M; #添加这一行代码
重启nginx问题就解决了。
前端上传文件,本地测试好的,放到服务器上出现了这个错误:the server responded with a status of 413 (Request Entity Too Large)
问题原因:服务器上使用了nginx,是nginx做了大小的限制
解决方法:

client_max_body_size 100M; #添加这一行代码
重启nginx问题就解决了。