Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
premchand b.
11 years agoExplorer | Level 3
read a file from dropbox c#
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
Replies have been turned off for this discussion
- Itay S.11 years agoNew 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...
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,039 PostsLatest Activity: 2 days ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!