Share a directory with other hosts
Hello my friends.
Have a nice time.
I have a site that looks like Spotify.
This means that users can upload songs.
The songs that are uploaded are placed in the upload folder in public html.
I want the songs uploaded by the user to be transferred to the download host so that the original host space is not taken.
Is it possible for the songs that are uploaded in the upload folder to be transferred to the download host and from now on all the songs that are uploaded to be downloaded to the host?
Thank you for your help.
-
Hey there! I'm not sure I completely understand what you mean by the "download host" but in general, files are not able to be shared across cPanel user accounts. 0 -
Hey there! I'm not sure I completely understand what you mean by the "download host" but in general, files are not able to be shared across cPanel user accounts.
My general goal is to share a folder between two hosts so that the folder contents folder is loaded on the download host instead of the main host so that the main host space is not taken up.0 -
Is the "download host" in your case a separate physical server, or just a separate cPanel account? 0 -
Is the "download host" in your case a separate physical server, or just a separate cPanel account?
A company that offers download hosting ...0 -
While it might be possible, there aren't any tools in cPanel that would perform that work for you. You'd need a custom script, possibly that runs as a cron job once a day, to move the files over to the alternate location. 0 -
While it might be possible, there aren't any tools in cPanel that would perform that work for you. You'd need a custom script, possibly that runs as a cron job once a day, to move the files over to the alternate location.
you can write this script bro?0 -
I wouldn't be able to do that - you'd have to work with a developer to find something that would fit your needs. 0 -
In this case, it seems to have been a separate server intended for file management and download capabilities. As Rex mentioned, while it is certainly possible to achieve this automatic offload to the "download host", there aren't any tools in cPanel that would perform that work for you. A custom script would be needed that could run as a cron job once a day, to move the files over to the alternate location. You will need to work with your developer or system administrator to configure and apply the custom script. 0
Please sign in to leave a comment.
Comments
8 comments