From <https://github.com/andreafabrizi/Dropbox-Uploader>