Closed ryanfoote closed 3 years ago
I just dug into it a bit, and it seems that the Public URL-setting of a Volume controls the visibility of assets in that volume.
So,
Check:
\craft\base\FlysystemVolume::visibility
(https://github.com/craftcms/cms/blob/develop/src/base/FlysystemVolume.php#L344)I haven't actually verified this yet, but please report back if you do! :)
I just verified this. I think the docs could be updated with this. I'll try to make time for a PR.
Set the volume to not have public URLs. Upload some files. Check them out in the Spaces environment. See their visibility is "private". Copy/paste the "origin" and "edge" (if CDN enabled) URLs and try them. You will see an access denied message.
Hi! Is there any planned support for controlling the visibility of files on a per-volume basis?