R
Railway•11mo ago
Dem

how to upload file?

I want to add a file (~600MB) to the railway server and access it via file path in .env file, is that possible?
5 Replies
Percy
Percy•11mo ago
Project ID: N/A
Dem
DemOP•11mo ago
N/A
Fragly
Fragly•11mo ago
it is possible, you'd want to host a volume on railway and write some code that'll initially upload the file to the volume, you can use a template for this or write your own code a volume is a way of storing persistent files you can then reference the path of the file in the volume in the .env keep in mind that the mount of the volume is not on the root folder of your app by default
Dem
DemOP•11mo ago
Will look into this, thanks
Fragly
Fragly•11mo ago
no problem 🙂
Want results from more Discord servers?
Add your server