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?
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.