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