- Merge request !6Issue #3275211: Allow altering the file location on its origin β (Closed) created by stborchert
We have a site were files are migrated from multiple servers into Drupal. The files of each server are up to be saved in a subdirectory of "public://" to avoid problems with duplicate file names and to make it easier for editors to recognize the origin.
Example:
sites/default/files/ + origin1/* + origin2/* + ...
Stage File Proxy only allows one origin website in its configuration (which is totally fine in 99,99% of all cases). Unfortunately this makes it impossible to switch the origin server based on the requested file location (@see ProxySubscriber::checkFileOrigin()
).
Add an alter-hook to allow overriding the generated location.
Needs work
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.