# I can't able to access public uploaded file via link

**URL:** <https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418>\
**Category:** troubleshooting\
**Tags:** uplink-nodejs\
**Created:** [May 31, 2024, 4:44am UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418 "2024-05-31T04:44:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![foreverfree100](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/foreverfree100/32/7832_2.png) [@foreverfree100](https://forum.storj.io/u/foreverfree100)\
**Post date:** [May 31, 2024, 4:44am UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/1 "2024-05-31T04:44:41Z")

</div>

Hey StorJ Team,

I can’t access the publicly uploaded file through the link. We are using uplink-nodejs library in our code. A new access token is generated when we upload files. So can you please help with this. let me know

My requirement is that I have uploaded a file which can access anytime anywhere. No account login required.

thank you

---

<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:** [May 31, 2024, 5:54am UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/2 "2024-05-31T05:54:18Z")

</div>

Hello @foreverfree100,  
Welcome to the forum!

To have a public link you have several approaches:

1. Use [presigned URLs](https://docs.storj.io/learn/concepts/security-models#presigned-ur-ls), see [Creating and Using Presigned URLs with Storj - Storj Docs](https://docs.storj.io/dcs/api/s3/presigned-urls) and example for js: [AWS SDK Nodejs - Storj Docs](https://docs.storj.io/dcs/code/aws/nodejs)
2. Use the [Self-hosted s3-compatible Gateway](https://docs.storj.io/learn/self-host/gateway-st) and run in the [web-site mode](https://docs.storj.io/learn/self-host/gateway-st#running-gateway-st-to-host-a-static-website) with a reverse proxy to publish it.
3. Use a linksharing service: [Creating Public Buckets and Embedding Content - Storj Docs](https://docs.storj.io/dcs/buckets/public-buckets). However, I do not think that `uplink-nodejs` binding have a required methods to register the access grant on the GatewayMT to generate a linksharing URLs:

> [@Uplink-nodejs - how to create a sharable URL for an object in a bucket?](https://forum.storj.io/t/uplink-nodejs-how-to-create-a-sharable-url-for-an-object-in-a-bucket/20933/12):
>
> I don’t believe we have any official public roadmap information right now, but we should be able to give you some idea of how it’s prioritized and/or scheduled. I think shelling out to the uplink CLI might be the best thing for now.

---

<div class="post-metadata">

**Author:** ![foreverfree100](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/foreverfree100/32/7832_2.png) [@foreverfree100](https://forum.storj.io/u/foreverfree100)\
**Post date:** [June 5, 2024, 11:41am UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/3 "2024-06-05T11:41:22Z")

</div>

If we want to open a file in the storage, from which link can we do it? There is an option. I did what you said, but if I put the name of the bucket in it, all the files in the bucket show up.

We’re doing this for security reasons because if the Storz link gets leaked, a whole bucketful of our stuff will come out that we don’t want.

---

<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:** [June 6, 2024, 3:53am UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/4 "2024-06-06T03:53:24Z")

</div>

If you want to share only one file, then share only it, not the whole bucket/prefix.  
Example for CLI:

```auto
uplink share --url --not-after=+1h sj://my-bucket/my-prefix/my-file.mp4

```

It will generate the linkshare URL which will expire after 1 hour (`--not-after=+1h`), it would also show the used access grant and generated S3 credentials.

Please note, that you may specify the used access grant without configuring uplink by providing it with the `--access` option.

```auto
uplink share --access 1dhjrujndjfd.... --url --not-after=+1h sj://my-bucket/my-prefix/my-file.mp4

```

---

<div class="post-metadata">

**Author:** ![foreverfree100](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/foreverfree100/32/7832_2.png) [@foreverfree100](https://forum.storj.io/u/foreverfree100)\
**Post date:** [June 6, 2024, 2:15pm UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/5 "2024-06-06T14:15:15Z")

</div>

Thank you very much for this help.

My team said, they cannot get the single file url direct thou.

This gets them the page with the video file on it. We just need access to the finale file url for secure download in our application.

Is this possible with storj? If so how please and thank you.

---

<div class="post-metadata">

**Author:** ![ray.bull](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ray.bull/32/7825_2.png) [@ray.bull](https://forum.storj.io/u/ray.bull)\
**Post date:** [June 6, 2024, 2:41pm UTC](https://forum.storj.io/t/i-cant-able-to-access-public-uploaded-file-via-link/26418/6 "2024-06-06T14:41:26Z")

</div>

Yes - modify the url generated by adding “raw”

Here’s a link to where in our documentation it talks about making embeddable content links:

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