1. Open php.ini
2. Find Post_max_size
The form submits the maximum value, which is not limited to the size of the individual file being uploaded, but to the entire form's submission data.
The default is 8M, set to the value you need, this parameter is recommended to be set larger than upload_max_filesize
3. Find File Uploads
Allow switch to upload file via http, confirm file_uploads = On
4. Find Upload_tmp_dir
File Upload to the server where temporary files are stored, if not specified, the system default temporary folder
If the system error indicates that there is "xxx temp directory XXX", this directory will need you to set up a valid directory, no error, no tube
5. Find Upload_max_filesize
Allow the maximum size of the upload file, default to 2M, set to your own need for this parameter is recommended not to exceed the post_max_size value, because it is controlled by the Post_max_size value (even if upload_max_filesize set 1G, and Post_max_ When size is set to 2M only, files larger than 2M cannot be transmitted, as it is controlled by the Post_max_size value)
6, if you want to upload files larger than 8M, you also need to set the following parameters:
Find max_execution_time = 600; maximum time value per php page (seconds), default 30 seconds
Max_input_time = 600; The maximum time required for each PHP page to receive data, default 60 seconds
Memory_limit = 8M; The maximum memory required for each PHP page, default 8M
This article is from the "Hello I am Forest" blog, please make sure to keep this source http://chensenlin.blog.51cto.com/10559465/1879172
PHP Upload Large file solution