R
Railway•9mo 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•9mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilko•9mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Brody
Brody•9mo ago
from the mount point 🙂
Solution
Brody
Brody•9mo ago
there is a RAILWAY_VOLUME_MOUNT_PATH environment variable automatically injected
macwilko
macwilko•9mo ago
right ok, so RAILWAY_VOLUME_MOUNT_PATH will be some path accessible for file IO ?
Brody
Brody•9mo ago
indeed
macwilko
macwilko•9mo ago
perfect