I am new to AWS S3 Service and working on a project like Dropbox. Now I want to store all the images in S3 with PHP and currently, I am using S3 presigned URL to PUT Image. Now I want to show the Image to the users. I found 2 ways to do this:
- Give the public access to S3 Bucket (Which I don't want to do that).
- Presigned URLs for GET object. (but user can view the directory structure)
I want something like permanent URLs to view image and but without showing the path of the image as it is in S3 Bucket. For example, currently the URL has the structure like this :
domain.com///?
but I want something like this:
domain.com/ some code is like a pointer to get the image from s3 bucket's directory. Please give me a hint to do so.
Thanks in advance