1, modify the php.ini
file_uploads on whether to allow the switch HTTP file upload. The default is ON that is open
upload_tmp_dir - upload local files on the server to store temporary files, if not specified will use the system default temporary folder
upload_max_filesize 8m Wang Wen business, which allows a maximum upload file size. The default is 2M
post_max_size 8M refers to the maximum value of the received form by the PHP could POST, includes all values in the form (including a file). The default is 8M
Description
In general, set up after the four parameters, the network under normal circumstances, upload <= 8M file is not a problem
but if you want to upload> 8M of large files, then only these four are not necessarily set do the same. Unless you really have to upload high-speed network 100M / S, otherwise you have to continue to set the following parameters.
max_execution_time 600 each maximum time value (in seconds) of running PHP pages, the default 30 seconds
max_input_time 600 PHP the maximum time required for each page of the received data, default 60 seconds
maximum memory memory_limit 8m eaten each PHP pages, the default 8M
2, modify Nginx
Add in the server
client_max_body_size 800M;