cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

read a file from dropbox c#

read a file from dropbox c#

premchand b.
Explorer | Level 3

Hello,
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.

Thanks

1 Reply 1

Itay S.
New member | Level 1

Take a look at my library: https://github.com/saguiitay/DropboxRestAPI
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...

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Itay S. New member | Level 1
What do Dropbox user levels mean?