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
Project ID:
N/A
N/A
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
Will look into this, thanks
no problem 🙂