We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
premchand b.
8 years agoExplorer | Level 3
implement dropbox on my cordova app
Hello,
I have a cordova based app and I would like to provde the user with a buttom that when click will open the dropbox picker and allow the user to select a file. This file will be process by my app and will display some info to the user
How can I implement dropbox picker and file selection in my mobile cordova app
Thanks
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
For Cordova, you may be able to use the API v2 JavaScript SDK:
https://github.com/dropbox/dropbox-sdk-js
There's a authenticateWithCordova helper documented here:
https://github.com/dropbox/dropbox-sdk-js/blob/66806fc1171bd3d6e95f246985a45dd0a65301dc/docs/tutorials/Authentication.md#dropboxauthenticatewithcordova
You can then list and download files, e.g., using:
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 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!