Hi everybody!
I'm trying to upload a file to DB using iOS's SwiftyDropbox.
According to the docs, I should use something like this:
if let client = DropboxClientsManager.authorizedClient {
let request = client.files.upload(path: "/test/path/in/Dropbox/account", mode: Files.WriteMode.overwrite, input: videoData)
.response { response, error in
if let response = response {
print(response)
} else if let error = error {
print(error)
}
}
.progress { progressData in
print(progressData)
}
}
But this gives me an error in XCode saying No exact matches in call to instance method 'upload'
What am I doing wrong?