How does HTTP complete a large file transfer when the network speed is slow?

Source: Internet
Author: User

Upload a large 500M file to the Web server via PHP, the client speed is 128K per second, for example

A normal PHP upload (you do not implement what kind of multipart upload), want to know at such a slow speed, HTTP is how to complete the transfer to the Web server and the Web server and how to accept it?

Reply content:

Upload a large 500M file to the Web server via PHP, the client speed is 128K per second, for example

A normal PHP upload (you do not implement what kind of multipart upload), want to know at such a slow speed, HTTP is how to complete the transfer to the Web server and the Web server and how to accept it?

HTTP is the normal TCP protocol, the transfer of files is a larger request. If you do not add any optimization, the process of transmission is extremely simple, is to pass slowly. The speed of the network will not affect the implementation of the transmission process. However, it is important to note that if the network is not reliable caused by slow speed, that is, TCP connections due to a short network outage and lost connectivity, then you do not optimize to do so directly upload, also because of the loss of connectivity and failure.

1. Use JS to slice files larger than a certain size
2. Fragment to PHP merge

  • 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.