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
Percy11mo ago
Project ID: N/A
maddsua
maddsua11mo 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 | AZIZ11mo ago
how to take a backup from the volume ?
maddsua
maddsua11mo ago
For now it's totally on your application, railway just provides mountable space to store stuff
BAG | AZIZ
BAG | AZIZ11mo ago
Om but if i need to take this file to my localhost how can i take a copy from the volume ?
Brody
Brody11mo ago
to reiterate on what maddsua has said, you would need to add that functionality to your app
BAG | AZIZ
BAG | AZIZ11mo ago
Can you share an example for it ?
Brody
Brody11mo 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
Want results from more Discord servers?
Add your server