cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to make our Community work for you and we need your help. Take our short survey!
Close

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#

Highlighted

read a file from dropbox c#

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
Highlighted

Re: read a file from dropbox c#

New member | Level 1
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...

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?