Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
i've auto added a 100gb volume to my droplet for storage, how do i save and retrieve files from the volume, what path would i use?
apologies for the novice question. I am a beginner at all of this.
I’ve been working on an app using the laravel framework with forge/digitalocean, and came to realize I needed much larger storage. After some research found out that digitalocean volumes seemed well enough to store the massive amount of images, json files, etc… I needed for the app.
My question is normally within the framework I can access any file to save it/retrieve it with either a relative/absolute file path, but I can’t seem to figure what the next step is to save files to the newly mounted digitalocean volume i.e. what path to use to save the file to, and of course what path to use to retrieve the file after saving.
I’ve seen some mention of symlinks being used or possibly mounting the volume directly to a laravel directory or creating a new disk in laravels flysystem. But this all seems counter intuitive, and I don’t think trying to save the file with ../../../../../mnt/newlyCreatedVolume is the answer.
Any help or guidance is appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×