#111541Configure the public URLs of file storages
Description
File storages based on Flysystem generate their public URLs with a Flysystem PublicUrlGenerator, selected per storage with the driver option “publicUrl” in config/system/file-storages.yaml:
- type “prefix” (default): files are published below “baseUri”, path segments URL-encoded. Existing URLs do not change.
- type “adapter”: public URLs come from the Flysystem adapter (e.g. AWS S3), which replaces the option “publicUrlsFromAdapter” of #106287 before it is released.
The reverse direction is added as well: a PublicUrlResolverInterface maps a requested URI back to the path it was generated for, and ResourceStorage->resolvePublicUrl() returns the identifier of the file or folder a URI points to. This is the base for handling requests for missing storage files (#101942) and for protected file delivery with expiring URLs (Flysystem TemporaryUrlGenerator).
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] Configure the public URLs of file storages Resolves: #111541 Releases: main