Closed aarongerig closed 1 year ago
Anything else for it to be merged? :)
Hey @aarongerig sorry for the late response. I've already checked your PR some weeks ago and had some thoughts on this.
I'm not quite sure, if this is the right way to go. Your approach only allows S3, but there could be also a different asset storage.
I think we should solve this by using the flysystem storage, like pimcore does.
Hi @solverat No worries. I definitey get your point and agree that it shoulf be solved more flexibly. This PR is only meant as a quick fix for Pimcore 6. Starting with Pimcore 10 flysystem is the way to go.
Ah, sorry. Please also add a short upgrade note for 3.1.6 here: https://github.com/dachcom-digital/pimcore-members/blob/3.x/UPGRADE.md
@solverat Done!
This PR removes the
PIMCORE_ASSET_DIRECTORY
prefix, if the file is served from an S3 bucket. Therefore it will be possible to use assets stored on S3 to be downloaded via the protected asset downloader.