Download PHP file with resume function

Hi I have a question, I want to make a download script that can take quite large files of 500 MB, 1 GB and load it with the resume function. Is this possible with only PHP, or is there another solution like Java Applet, Flash, and which one is best for this case?

+3
source share
1 answer

PHP is a server-side language, so you really cannot submit it using the Java Applet or Flash. These are client technologies running inside the browser. To download you need both the client and the server.

Resuming HTTP downloads is not possible , regardless of the HTTP application platform, be it J2EE, Python, Rails, or ASP.NET. This is just a limitation of the HTTP protocol.

One way to achieve resume functionality is to upload files to a standards-compliant FTP server using the appropriate browser component. In this case, you will need a custom input solution, possibly a Java applet, such as jClientUpload . Files of a few hundred megabytes are too many for Flash.

+4
source

Source: https://habr.com/ru/post/1771521/


All Articles