PHP上传文件 提示 413 Request Entity Too Large

@liubb  October 26, 2018

nginx配置

client_max_body_size 2m;

php.ini配置

post_max_size = 2M
upload_max_filesize = 2M

此处只能通过更改ini文件生效,而不能通过ini_set


添加新评论