Need support for permanent public URLs or public bucket access in Railway Storage
aamir-marqait
PROOP

6 months ago

Hi team,

I am using Railway Buckets for storing user-generated media in my production app. Everything works well with uploads and presigned URLs, but I have one important requirement.

I need certain files, like profile avatars and AI-generated images, to have public, non-expiring URLs that can be accessed directly from the frontend without generating a presigned URL each time.

From the documentation, it looks like:

  • Railway buckets are always private
  • Public buckets are not supported
  • Presigned URLs expire
  • There is no option for permanent file access through a direct URL

Can you confirm whether Railway currently supports any method for:

  1. Permanent public URLs for selected objects, or
  2. Making a specific folder public, or
  3. Turning off expiration for presigned links, or
  4. Any upcoming feature that will allow public object access?

This is an important requirement for my use case since the files need to be displayed directly in the application and sometimes shared publicly.

Project: marqait-backend / marqait-app

Bucket: marqait-bucket

Thank you for the clarification.

Visibility

Choose: Public or Private (doesn’t matter for this question)

2 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open ray-chen 6 months ago


timomeh
EMPLOYEE

6 months ago

You can add a route into your service that redirects a public static URL to a presigned URL. We have an example in the docs:

https://docs.railway.com/guides/storage-buckets#serve-files-with-presigned-urls

This is especially useful if only certain files in your bucket should be publicly available.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...