Home >Backend Development >PHP Tutorial >javascript - PHP file upload speed is too slow, is there any optimization method?
1. The average size of uploaded files is about 10M
2. I am currently using apache. I heard that changing to nginx can speed up the process?
1. The average size of uploaded files is about 10M
2. I am currently using apache. I heard that changing to nginx can speed up the process?
Uploading files may depend on your local network bandwidth
Change to a network with fast upload bandwidth, it has nothing to do with PHP and Nginx.
nginx
has a file upload module https://github.com/vkholodkov/nginx-upload-module/tree/2.2. Using this module, the file upload and reception processing is directly handed over to
nginx,
nginx Directly pass the file-related parameters to
php, so that
php only receives file-related parameters, such as file size, temporary storage location, type, etc., without processing the submitted file stream