a year ago
As I know we can store images, pdf etc. in railway volume. but I could not find much tutorial on how to upload and generate link by using railway volume. Also there is no UI to upload and generate links like firebase storage. I have an nextjs app and need to upload some images and retrieve those via public accessible link. Please let me know the steps to achieve this
6 Replies
a year ago
A volume is not object storage like firebase cloud storage or s3, it is most literally disk storage, just a simple disk mount. That means the service attached to it needs to be responsible for handing uploads and serving the files via a link, so there's the option of writing code to achieve that functionality or the option of using MinIO and its s3 compatible API. I would personally go with the MinIO option.
Status changed to Solved railway[bot] • about 1 year ago
a year ago
thank you so much. Please can I know how the pricing calculate on railway with minio.
a year ago
That all mainly depends on how much you store and how much egress you use, you can find the usage pricing on this page -
https://railway.app/pricing (scroll down a bit and there is even a pricing calculator)
a year ago
I have deployed minio on my project. then created a bucket and uploaded an image. let me know how to get public url of that image
a year ago
I'm sorry to say this but an explanation of how to use MinIO is quite far out of the scope of the topics these threads are intended for, besides, there are many resources online that could explain it far better than I ever could.
a year ago
okay thank you