Pause Download for Apache

I have an Apache server hosting the php web application. This server also provides conditions for downloading a file about 900 MB in size from it. However, while testing the application, I found that it was not possible to pause the download and resume them later.

Can someone help me? Is this an apache property that I have to change?

+4
source share
1 answer

If you are serving your files using php , you should implement Range header processing in a script. You can get the current range value from $_SERVER['HTTP_RANGE'] . It contains the offset in bytes from the beginning of the file.

ps: as usually mentioned, almost everyone already answered here ;-) Renewable downloads when using PHP to send a file?

+7
source

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


All Articles