javascript - PHP file upload speed is too slow, is there any optimization method?

WBOY
Release: 2016-09-03 00:14:15
Original
2476 people have browsed it

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?

Reply content:

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.

nginxhas a file upload modulehttps://github.com/vkholodkov/nginx-upload-module/tree/2.2. Using this module, the file upload and reception processing is directly handed over tonginx,nginxDirectly pass the file-related parameters tophp, so thatphponly receives file-related parameters, such as file size, temporary storage location, type, etc., without processing the submitted file stream

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!