How Do I Change File Upload Directory From Droplet File System To Volume Block Storage?
I have a Droplet running Ubuntu 18.04 with Apache. I have a project wherein I need to upload lots of videos and hence I added a Volume of 100GB to my Droplet.
Default project video upload path is /var/www/html/public/uploads/videos and i want to change this location to /mnt/volume_blr1_01/uploads/videos
I have tried Symlink with the below command but symlink doesn’t seems to change location of video upload sudo ln -s /mnt/volume_blr1_01/uploads/videos /var/www/html/public/uploads/videos
I also tried adding alias in conf file and failed.
Also, the videos that i upload in block storage /mnt/volume_blr1_01/uploads/videos needs to be secured where only my project can access it and no direct requests
Can anyone please help how can I achieve this or what would I have to do?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!