amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

Using public s3 URL from Storage.get

Open Dongw1126 opened this issue 3 years ago • 27 comments

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

Storage

Is this related to another service?

S3

Describe the feature you'd like to request

I want to get only public object URL when I use Storage.get. Currently, I receive only signed URL.

I'm going to use S3 as an image storage that all users can write and read. However, because of the signed URL, the URL changes every time users refresh, so image caching doesn't work and resources are wasted.

Describe the solution you'd like

I'd like to get a public object URL without signature from Storage.get. I wish amplify would provide an option for public objects.

Describe alternatives you've considered

It would be nice if the signed URL doesn't change on every refresh.

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request
  • [ ] ⚠️ This feature might incur a breaking change

Dongw1126 avatar Dec 31 '21 18:12 Dongw1126