Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have site offering large mp4 files for sale via commerce file, but served wrapped in video tags. The video tag src maps to a file/{fid}/download?token={token} URI.
File entity file_entity_download_page() outputs 'Accept-Ranges' => 'bytes' that causes browsers like Chrome to request the video file in chunks. However, file_entity_download_page() then routes to core's file_transfer() that doesn't support byte ranges. Compare to the logic in _resumable_download() from https://drupal.org/project/resumable_download
Comment | File | Size | Author |
---|---|---|---|
#1 | 2098067-file-download-remove-accept-bytes-header.patch | 422 bytes | Dave Reid |
Comments
Comment #1
Dave ReidAgreed. Patch to remove this header.
Comment #2
Dave ReidCommitted #1 to 7.x-2.x. http://drupalcode.org/project/file_entity.git/commit/07411c4