fix bugs on uploading files via cordova file-transfer