R
Railway13mo ago
Swoff

Accessing volume for file upload

Hello, I'm trying to upload files to my volume to use the files within flowise. I have attached a volume to my service and I have the mount path. I just cant find anything in the docs - examples or such things - on how to access this mount path properly. Maybe somebody could point me in the right direction here?
I have read through the posts here but have not found a conclusive answer. I understand I need to write some code which is ok but I have no understanding of where and how to access the mount path properly. I assumed it would be some REST type behaviour but maybe its not? Thank you in advance!
Solution:
the service the volume is attached to would need to provide that funcionality
Jump to solution
7 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
the volume is a disk thats mounted to the exact path you have specified, you can use the RAILWAY_VOLUME_MOUNT_PATH variable in code to know the exact mount path to write files into railway does not provide any type of native filebrowser, all file access has to be done by the service the volume is attached to
Swoff
SwoffOP13mo ago
That I understand but tbh I still do not understand how I upload local files into this volume using the mount path
Solution
Brody
Brody13mo ago
the service the volume is attached to would need to provide that funcionality
Brody
Brody13mo ago
you could use https://railway.app/template/Nan7Bs to upload the files to the volume this template comes with, then unmount the volume and mount it to the flowise service
Swoff
SwoffOP13mo ago
Now I get this. Thanks I had a more basic misunderstanding as to how this works! Thanks a lot!
Brody
Brody13mo ago
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
Want results from more Discord servers?
Add your server