1、错误描述
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
2、错误原因
上传文件时,利用localhost访问系统,不会出现这个问题;用域名访问这个系统时,出现这个问题,提示是:请求实体太大
由于Nginx反向代理服务器client_max_body_size默认值为1MB,而上传文件大于1MB,所以就出现这个错误
3、解决办法
打开Nginx反向代理服务器nginx.conf配置文件,修改client_max_body_size值
client_max_body_size 30M