AWS Amplify Storage.get() ? How to target specific folder in S3 Bucket

Well, I’m trying to get an image that already exists in a personal S3 Bucket.

The way that I was doing it looks like this:

Storage.get(fileName)

And that would do the job. However, by default this would go and look in the public/ folder inside of the S3 bucket.

I created a new folder called uploads at the same level as the public/ folder. But can’t
find how to reference the uploads/ folder in the S3 bucket to look for the image. instead of the other one.

“uploads/myfile”. S3 doesn’t actually have folders btw, its just made to look like that in the UI – the “path” is just a key, so if you have a file in a subfolder, it’s just a file with the key “subfolder/file.filetype”

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.