一、报错内容
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
二、原因说明
经过查询,是因为应用服务器使用了Nginx做代理,而在Nginx这一层限制了上传文件的大小,因此需要修改Nginx配置文章来源:https://www.toymoban.com/news/detail-617304.html
三、问题解决
在location 下面增加client_max_body_size 100M;
配置项,重启Nginx文件上传成功.文章来源地址https://www.toymoban.com/news/detail-617304.html
到了这里,关于【异常】Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!