R
Railway•7mo 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•7mo ago
Project ID: N/A
Dem
Dem•7mo ago
N/A
Fragly
Fragly•7mo 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
Dem•7mo ago
Will look into this, thanks
Fragly
Fragly•7mo ago
no problem 🙂