Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

场景:

上传过大文件时,页面无反应,通过浏览器F12查看到错误信息:

Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

请求实体太大


解决方案:

打开nginx.conf配置文件,修改client_max_body_size对应的值,解决上传大小的限制

如果没有client_max_body_size则手动添加到location /{}里面

重启nginx生效

猜你喜欢

转载自blog.csdn.net/github_39325328/article/details/79695241