Open PHP.ini, first find File_uploads = on; whether to allow the switch to upload files over HTTP. The default is on, which is open
Upload_tmp_dir files are uploaded to the server where temporary files are stored, and the system default temporary folder is used if unspecified
Upload_max_filesize = 8m business, that is, the maximum size of the upload file allowed. The default is 2M
Post_max_size = 8m refers to the maximum value that can be received by the form Post to PHP, including all the values in the form. The default is 8M
Generally, set the above four parameters, upload <=8m file is not a problem, in the normal network situation.
However, if you want to upload >8m files, only set up the above four will be able to do.
Further configure the following parameters Max_execution_time = 600, maximum time for each PHP page to run (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, maximum memory consumed by each PHP page, default 8M
After the above parameters are modified, the network allows the normal situation, you can upload large volume files
Max_execution_time = 600
Max_input_time = 600
Memory_limit = 32m
File_uploads = On
Upload_tmp_dir =/tmp
Upload_max_filesize = 32m
Post_max_size = 32m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.