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 !!