标签:上传大小报错,error413,client_max_body_size,nginx,客户端上传文件
发布时间:2019-07-29
一、错误描述
通过php的上传文件是报出“413 Request Entity Too Large..nginx/1.6.3”异常错误,如下图所示

二、解决方法
修改nginx的conf/nginx.conf配置文件,增加client_max_body_size 50m;配置,如下所示
...@b@http {@b@ include mime.types;@b@ default_type application/octet-stream;@b@ client_max_body_size 50m;@b@ @b@ ...