# Url for the object with public-read acl

**URL:** <https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681>\
**Category:** Developer Discussions\
**Tags:** gateway-mt, s3-gateway\
**Created:** [November 29, 2024, 1:53pm UTC](https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681 "2024-11-29T13:53:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar-saxena-yral](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tushar-saxena-yral/32/1121_2.png) [@tushar-saxena-yral](https://forum.storj.io/u/tushar-saxena-yral)\
**Post date:** [November 29, 2024, 1:53pm UTC](https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681/1 "2024-11-29T13:53:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 30, 2024, 5:47am UTC](https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681/2 "2024-11-30T05:47:48Z")

</div>

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

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

> **[Creating Public Buckets and Embedding Content - Storj Docs](https://storj.dev/dcs/buckets/public-buckets)**
>
> Guide on generating a LINKSHARINGKEY to make Storj buckets public and embedding content from the buckets.

See also:

> **[Hosting a Static Website - Storj Docs](https://storj.dev/dcs/code/static-site-hosting)**
>
> Guide on hosting a static website on Storj using Uplink CLI and Linksharing service, covering website setup, DNS configuration, and custom domain usage.

> [@Is there a way to get the share link of an uploaded file through an api call?](https://forum.storj.io/t/topic/21538/11):
>
> There are currently no limits set up. We didn’t want to constrain users, but if we detect abuse, w will most likely impose some reasonable limits (like the number of access grants you can register with the same macaroon head). Also, if you’re looking for more examples of how to interact with Storj-hosted Auth Service, take a look at this gist: [How to register an access grant @ Auth Service via HTTP(S) and DRPC(S) · GitHub](https://gist.github.com/amwolff/8dfa1a0c24d9023b2398564d2822055b). They should be fairly easily portable into code (at least HTTP-based one…

> [@Is there a way to get the share link of an uploaded file through an api call?](https://forum.storj.io/t/topic/21538/3):
>
> I made a very simple example to do this using Go, this uses the uplink library as Alexey linked above: [share file programatically using storj linksharing service · GitHub](https://gist.github.com/halkyon/491041586f56a3f8f1150fa1fd4769e3) For Android, looks like you can at least create the restricted access grant with this snippet: [GitHub - storj/uplink-android: Storj network Android library](https://github.com/storj/uplink-android#sharing-content) then post it to https://auth.storjshare.io/v1/access with request body like {"access\_grant":"abc123","public":true} to get an access key for Linksharing. The response will …

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

> **[Storj Data Access Methods - Storj Docs](https://storj.dev/learn/concepts/security-models#presigned-ur-ls)**
>
> Explore Storj's diverse data access solutions from public Linksharing to encrypted S3 credentials, ensuring optimal security for your storage needs.

See also:

> **[Creating and Using Presigned URLs with Storj - Storj Docs](https://storj.dev/dcs/api/s3/presigned-urls)**
>
> Step-by-step guide on creating and using presigned URLs for unauthenticated object access using Storj's S3-compatible gateway. Includes Python scripting instructions.

> **[AWS SDK Nodejs - Storj Docs](https://storj.dev/dcs/code/aws/nodejs#6-get-url-that-points-to-an-object)**
>
> Make the world your data center

> **[Generating Presigned URLs in Serverless Cloud with Go - Storj Docs](https://storj.dev/dcs/code/presigned-urls-serverless-cloud)**
>
> A guide to creating presigned URLs in a serverless cloud using Go, including setup and implementation with AWS Lambda functions.

---

<div class="post-metadata">

**Author:** ![tushar-saxena-yral](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tushar-saxena-yral/32/1121_2.png) [@tushar-saxena-yral](https://forum.storj.io/u/tushar-saxena-yral)\
**Post date:** [December 31, 2024, 12:35pm UTC](https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681/3 "2024-12-31T12:35:23Z")

</div>

Does gateway-st support globally public buckets?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 1, 2025, 8:29am UTC](https://forum.storj.io/t/url-for-the-object-with-public-read-acl/28681/4 "2025-01-01T08:29:55Z")

</div>

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](https://storj.dev/dcs/buckets/public-buckets), see also [Hosting a Static Website - Storj Docs](https://storj.dev/dcs/code/static-site-hosting).

You may also use the integrated to Gateway-ST feature to [host a static website](https://storj.dev/learn/self-host/gateway-st#running-gateway-st-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](https://github.com/storj/edge/blob/b7cf41e4a2c2e62d5249c1eb627ffd80e84e7c33/docs/linksharing.md)
