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