Showing results for 
Search instead for 
Did you mean: 
Do you have an idea for Dropbox Paper? Share it with us here!

read a file from dropbox c#

Explorer | Level 3

I have the dropbox picker on my page and I can select a file and get the filelink and name. Now I would pass this info to my c#api to read the content. However, it seem that I am missing the credential

Here c# snippet
var webClient = new WebClient();
byte[] arr;
arr = webClient.DownloadData(dropboxFileData.Link);// the link I got from the client js

The arr contain the login html instead of file content. What credential do I need and how I get it.


1 Reply

Re: read a file from dropbox c#

New member | Level 1

Take a look at my library:
It should allow you to do everything you want in Dropbox, using a simple API...

Basically, your problem is authentication - the URL that you're using assumes that you will make requests that include your Access Token... Without that, it would have been possible to download files of other users, by just knowing the URL...

API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post