If you encounter a strange problem, ask for help to answer the question.

Source: Internet
Author: User
Server Environment
PHP Environment

Case: When uploading a 30 m file, the local data is being submitted, and the server Io has been downloading traffic. However, there is no end. php outputs $ _ files and will not execute this line of code. For example, if I submit a 30 m file form, but the traffic is estimated to exceed several hundred m, it will not stop, without human intervention, we are constantly interacting with data. Is there a big brother who has encountered this situation? Which PHP configurations are not configured?




The problem of uploading large files has been solved. In this example, the size of the 32 m File Uploaded By my test is used as an example.

PHP run mode FPM-FCGI

PHP. ini

Upload_max_filesize = 64 m // Maximum File Upload limit

Post_max_size = 100 m // The maximum submission limit of the post method is better than the above

Max_execution_time = 300 // script timeout
Max_input_time= 300
Memory_limit = 200 m // if not large enough. Memory overflow error 500

Nginx. conf

Client_max_body_size 100 m; // adjust the submitted space according to the file size


The above solution. I checked Baidu and found out what kind of system configuration optimization solution can be used to upload large files. I hope I can give some advice. Thank you !!

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.