How does http complete transmission of a large file when the network speed is slow?

Source: Internet
Author: User
Upload a m large file through PHP to the web server. The client's network speed is KB per second, for example, a normal php Upload (which does not implement multipart upload ), I want to know how http is transmitted to the web server at such a slow speed and how the web server is connected...

Upload a 128 MB large file to the web server using PHP. The client's network speed is KB per second, for example.

An ordinary php Upload (I have not implemented any parts or other uploads myself). I want to know that at such a slow speed, how does http transfer to the web server and how does the web Server Accept it?

Reply content:

Upload a 128 MB large file to the web server using PHP. The client's network speed is KB per second, for example.

An ordinary php Upload (I have not implemented any parts or other uploads myself). I want to know that at such a slow speed, how does http transfer to the web server and how does the web Server Accept it?

Http is a common tcp protocol, and transferring files is a relatively large request. If you do not need any optimization, the transmission process will be extremely simple, that is, to transmit data slowly. The speed of the network does not affect the implementation of the transmission process. However, it should be noted that if the network speed is slow because of the network reliability, that is, the tcp connection will be lost due to a short interruption of the network, then you can directly upload without optimization, it will also fail due to lost connections.

1. Use JS to slice files larger than a certain size
2. Upload parts to PHP for merging

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.