The comfort function to upload was great, but I have another suggestion:
Create a function to syncronize an entire folder.
// instanciate the cloudstorage manager
CloudStorage storage = new CloudStorage();
// Enumerate all files and verify the need to upload each file