Take a look at the file visibility section in the docs.
Nov 17, 2016
7
Level 20
Make Amazon S3 files private
I'm trying to learn Amazon S3.
When storing files locally, I know you can store them in storage/app/public, then make them publicly accessible with a sym link to public/storage.
And any files outside of storage/app/public will be private, and I can access them with an authenticated route that returns the file from the storage folder.
I was able to setup a Policy for my Bucket, so that only requests from my domain can access the files. But I think the files are still technically public.
- Is there a way to make the files private?
- Is there a need for this?
- How would I go about doing this?
- Should I leave them public and just obfuscate the path?
Any additional info on this would be great.
Please or to participate in this conversation.