php上传文件大小限制配置

php通过页面上传文件报错提示:
Nginx返回 413 Request Entity Too Large错误解决方法
在http{} 添加: client_max_body_size 100m;
重启nginx

POST Content-Length of 8908752 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
php.ini 配置:
post_max_size = 100M
upload_max_filesize = 100M
重启php服务

相关推荐