上传大小限制设置

nginx.conf

location ~\.php{
     client_max_body_size 10M;
}

php.ini

upload_max_filesize = 8M 
post_max_size = 10M 
memory_limit = 20M 

你可能感兴趣的:(上传大小限制设置)