nginx.conf
location ~\.php{ client_max_body_size 10M; }
php.ini
upload_max_filesize = 8M post_max_size = 10M memory_limit = 20M