javascript-php file upload speed is too slow, what is the optimization method?

Source: Internet
Author: User
Tags php file upload
1, upload file average size of about 10M
2, the current temporary use of Apache, heard that change nginx can speed up?

Reply content:

1, upload file average size of about 10M
2, the current temporary use of Apache, heard that change nginx can speed up?

The upload file is related to your local network bandwidth.

Change the upload bandwidth fast network, with PHP and Nginx does not matter.

nginxThere is a file upload module https://github.com/vkholodkov/nginx-upload-module/tree/2.2, the use of this module, file upload receive processing directly nginx to hand, nginx directly to the relevant parameters of the file php , so that php only receive file-related parameters, such as file size, temporary save location, type, etc., do not need to process the submitted file stream

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.