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