upload images

i need to create MERN project and upload it to railway servers i need to upload user profile image so this images will be deleted after github update ?
8 Replies
Percy
Percy7mo ago
Project ID: N/A
maddsua
maddsua7mo ago
Volumes can be used to store any kind of data or files persistently between deploys Including images and profile pictures ofc
BAG | AZIZ
BAG | AZIZ7mo ago
how to take a backup from the volume ?
maddsua
maddsua7mo ago
For now it's totally on your application, railway just provides mountable space to store stuff
BAG | AZIZ
BAG | AZIZ7mo ago
Om but if i need to take this file to my localhost how can i take a copy from the volume ?
Brody
Brody7mo ago
to reiterate on what maddsua has said, you would need to add that functionality to your app
BAG | AZIZ
BAG | AZIZ7mo ago
Can you share an example for it ?
Brody
Brody7mo ago
it's nothing specific to railway, attach a volume and then use that mount point as the location to store your files using the basic file APIs your language of choice provides