Home >Backend Development >PHP Tutorial >Nginx+PHP+Swfupload upload large files
Environment: LNMP, upload plug-in Swfupload, when we need to upload large files, we need to make some settings, because the default upload sizes of Nginx php and swfupload are relatively small. Next, set the size according to the access sequence
1.Swfupload configuration, modify
<span style="white-space:pre"> </span>file_size_limit : "100 MB", //允许上传文件大小 file_types : "*.*", // 上传文件类型 file_types_description : "All Files", file_upload_limit : 0, file_queue_limit : 20,2.Nginx, modify nginx.conf, add or modify the following options, this will not pass, and a 413 error will be reported
client_max_body_size100m;
3.PHP, modify php.ini, the number of php modification items will be more
max_execution_time = 600 //Maximum execution time
4. Finished, if modified If items 2 and 3 are found, please restart nginx
Copyright statement: This article is an original article by the blogger and may not be reproduced without the permission of the blogger.
The above introduces Nginx+PHP+Swfupload to upload large files, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.