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