cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No exact matches in call to instance method 'upload' when trying to upload a file to DP

No exact matches in call to instance method 'upload' when trying to upload a file to DP

Swissdoode
Explorer | Level 3

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?

1 Reply 1

Swissdoode
Explorer | Level 3

I found the problem. 

I need to use 

DropboxClientsManager.authorizedClient!.files.upload(path:"/myFile.mp4", input:uploadData! as Data)

Now it's working.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Swissdoode Explorer | Level 3
What do Dropbox user levels mean?