PHP Upload Large file solution

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.