How to generate pre-signed URLs for a specific directory - recursive object access with pre-signed URLs #3092
-
I have all users profile images stored in a shared directory called "shared-user-profile", and I want a pre-signed URL for generated for "shared-user-profile" directory so that I don't have to generate pre-sign URLs for each files when users navigates through the system. If there is no way to generate pre-signed URLs for a specific directory recursively, how can I handle my senior given that I don't want my users' profile images to be available in public. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@kalingaru48 Please refer Sharing objects with presigned URLs, presigned URLs only work for specific object, not the prefix. You would use presigned URL to GET, PUT or POST and object. Also note that S3 doesn't really have a true concept of a folder. The folders are "created" using segments of the object paths. They do not exist independently of objects. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@kalingaru48 Please refer Sharing objects with presigned URLs, presigned URLs only work for specific object, not the prefix. You would use presigned URL to GET, PUT or POST and object. Also note that S3 doesn't really have a true concept of a folder. The folders are "created" using segments of the object paths. They do not exist independently of objects.
Thanks,
Ashish
Answer: