cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

I am getting the error "Error in call to API function "files/download"" when uploading and downloading the files on dropbox?

Manjit S. New member | Level 1
New member | Level 1

I am using the DropBox .net sdk in my project and I have a Folder "Test" and file "TestFile" in this folder in my dropbox ,now i am trying to download this "TestFile" by using the following code by passing folder="Test",file="TestFile" :

async Task Download(DropboxClient dbx, string folder, string file)
{
    using (var response = await dbx.Files.DownloadAsync(folder + "/" + file))
    {
        Console.WriteLine(await response.GetContentAsStringAsync());
    }
}



But now i am getting the following error:

Error in call to API function "files/download": HTTP header "Dropbox-API-Arg": path: 'TestDBX/VSDeploymentFailure.txt' did not match pattern '((/|id.|(rev:[0-9a-f]{9,})'

 
2 Replies 2

Re: I am getting the error "Error in call to API function "files/download"" when uploading and downloading the files on dropbox?

Dropboxer
Dropboxer

You need a slash at the beginning of the path.

Re: I am getting the error "Error in call to API function "files/download"" when uploading and downloading the files on dropbox?

Manjit S. New member | Level 1
New member | Level 1

Thanks @Steve M. 

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?