Url for the object with public-read acl

Hello,

I have created an object using s3 PutObject with acl set to public read. How do I construct a link to this object’s raw contents?

Ps. I have read through the three methods for sharing objects in the docs, but we are only interested in the s3 related methods as we are integrating with other s3 compatible storage as well.

Hello @tushar-saxena-yral,
Welcome to the forum!

Our GatewayMT doesn’t support globally public buckets, but you can use a linksharing service instead:

See also:

The only way to share an object via S3 is using a presigned URLs:

See also:

Does gateway-st support globally public buckets?

No, as a Gateway-MT. However, you may use a linksharing service instead (and it works faster): Creating Public Buckets and Embedding Content - Storj Docs, see also Hosting a Static Website - Storj Docs.

You may also use the integrated to Gateway-ST feature to host a static website as well. But you would need a reverse-proxy before it to support HTTPS and have a custom domain.
You may also setup your own linksharing, see edge/docs/linksharing.md at b7cf41e4a2c2e62d5249c1eb627ffd80e84e7c33 · storj/edge · GitHub

1 Like