Closed (fixed)
Project:
Stage File Proxy
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Mar 2026 at 02:57 UTC
Updated:
30 Sep 2026 at 14:05 UTC
Jump to comment: Most recent
When using Stage File Proxy in combination with other modules like Media Entity Download, sometimes the files do not exist yet because they aren't images. They might be PDFs files on the origin. It would be nice to support hook_file_url_alter() to rewrite the files to their proxy URL, and also implements hook_file_download to support #2925406: Allow redirect responses for download requests (and automatically redirect external file URLs like s3fs)
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
smustgrave commentedI'm willing to merge the change to the DownloadManager but the hook stuff seems specific to the media entity download module?
Comment #4
smustgrave commentedI removed the download hook as that seems specific to media_entity_download but the rest I don't mind merging.
Comment #5
smustgrave commentedThink we are safe to add to 4.0.x