To upload file in PHP, there are several items to be configured. Otherwise the file not be to access in PHP or error will be return by nginx.
- Include the size limit of php
upload_max_filesize=16M
post_max_size=32M
- Increase the size limit of nginx
client_max_body_size 32M;