In the order of easiest but least reliable, to hardest but most robust:
* Dropbox / Google Drive
* Host an ftp server and use ftp functions
* Host a REST server and use http functions

You need to understand that Dropbox and Google Drive synchronize files on their own terms and not your terms.