How to setup persistent storage for file uploads in Railway for Strapi?

I am running Strapi on Railway and whenever I make new changes and deploy them the existing file uploads are removed. I understand this is expected behavior and the uploaded files are stored locally in the server’s filesystem.

To mitigate this, I added a custom Railway volume to the backend, but the files are still uploaded to the temp filesystem, not the volume. The mount Path is set to /public/uploads. Is this right?

Has anyone faced and fixed this issue? I appreciate any help you can offer.

This topic has been created from a Discord post (1277553801372631143) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

You can simply configure a different upload provider

Cloudinary is popular and free

Looks pretty cool.

Thank you, I will definitely use this if I can’t figure this out.