craftcms / aws-s3

Amazon S3 volume type for Craft CMS.
https://plugins.craftcms.com/aws-s3
MIT License
61 stars 28 forks source link

not a bug, but could not find the answer reading the source code #170

Closed drzhouq closed 8 months ago

drzhouq commented 1 year ago

I am a beginner user of craft and the aws-s3 volume. It seems that the aws bucket for the aws-s3 volume cannot be a private bucket? disabling "Assets in this volume have public URLs" will cause the file uploaded to show up for download. How are you folks use this plugin for private AWS S3 bucket?

timkelty commented 8 months ago

@drzhouq this plugin doesn't create any buckets. Public/private permissions are done when creating the bucket.

"Assets in this volume have public URLs" merely controls whether Craft will attempt to generate a URL for it, but nothing as far as permissions.

disabling "Assets in this volume have public URLs" will cause the file uploaded to show up for download

The Craft control panel will still be able to download the asset, as it has credentials to do so. This doesn't mean the asset is accessibly via a public URL.