R
Railway•8mo ago
macwilko

File uploads in go ~ railway volumes

I'm curious to do file uploads to Railway with golang, how do I access the volume from my Go program?
Solution:
there is a RAILWAY_VOLUME_MOUNT_PATH environment variable automatically injected
Jump to solution
7 Replies
Percy
Percy•8mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilko•8mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Brody
Brody•8mo ago
from the mount point 🙂
Solution
Brody
Brody•8mo ago
there is a RAILWAY_VOLUME_MOUNT_PATH environment variable automatically injected
macwilko
macwilko•8mo ago
right ok, so RAILWAY_VOLUME_MOUNT_PATH will be some path accessible for file IO ?
Brody
Brody•8mo ago
indeed
macwilko
macwilko•8mo ago
perfect