Issue Feature New Orphaned

#83145Add HTTP_RANGE support to the FileDumpController

Frans Saris 11/28/17, 21:23 updated 05/03/21, 15:39

Description

The HTTP protocol knows the Accept-Ranges header to support partial downloads.
With incoming header HTTP_RANGE only a part of the requested file can be requested.

With this resumable downloads are possible when downloading af file via FileDumpEID.

Needed changes:

- range support in ResourceStorage::dumpFileContents()
- range support to the FileDriver for instance FileDriver::dumpPartialFileContents($identifier, $start, $end);
- when only a range is requested header HTTP/1.1 206 Partial Content should be set together with Content-Range: bytes ...
- header Accept-Ranges: bytes should be set to tell the remote the partial content is supported

Think we should introduce a new Interface PartialFileDumpInterface or something to tell that the a driver supports this.
When the driver doesn’t support this we use getForLocalProcessing() in the ResourceStorage to read the requested part of the file.

Example implementation or the partial content: https://github.com/beechit/fal_securedownload/blob/5dfa1a09f976df2e8d344c3af90be29469fe213a/Classes/Hooks/FileDumpHook.php#L196

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[FEATURE] Add HTTP_RANGE support to the FileDumpController Resolves: #83145 Releases: main