: This article mainly introduces how to upload large files through Nginx + PHP + Swfupload. if you are interested in the PHP Tutorial, refer to it. Environment: LNMP, the upload plug-in Swfupload. when you need to upload large files, we need to make some settings, because Nginx php and swfupload have relatively small Upload sizes by default. Set the following size according to the access order
1. Swfupload configuration, modify
File_size_limit: "100 MB", // The file size 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. if this option fails, error 413 is returned.
Client_max_body_size100m;
3. PHP: modify php. ini, and the number of php modifications will increase.
Max_execution_time = 600 // maximum execution time
Max_input_time= 600
Memory_limit = 100 m
File_uploads = on // enable Upload
Upload_tmp_dir =/tmp // Upload Directory
Upload_max_filesize = 100 m // upload size limit
Post_max_size = 100 m // post Upload size limit
4. if you have modified 2 or 3 items, restart nginx.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above describes how to upload large files through Nginx + PHP + Swfupload, including some content. I hope my friends who are interested in PHP tutorials will be helpful.