Gopal Biswas
Gopal Biswas

Reputation: 419

Dropbox copy file to another account not working in C# using Dropbox.NET SDK API v2

I'm trying to copy a file from a dropbox account to another account. I'm trying the below code-

var client = new DropboxClient("c4zvSWqce");
await client.Files.CopyReferenceSaveAsync(strCopyRef, Path);

The CopyReference value is looking correctly but calling CopyReferenceSaveAsync showing error "no_permission". Please see the attachment. I couldn't find the reason for this error. Any help will be appreciated.

enter image description here

Upvotes: 0

Views: 200

Answers (1)

user94559
user94559

Reputation: 60143

The documentation gives the following definition for that error:

no_permission Void You don't have permission to save the given copy reference. Please make sure this app is same app which created the copy reference and the source user is still linked to the app.

Perhaps the access tokens you're using (for source and destination) are not for the same app?

Upvotes: 1

Related Questions