We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
IlikeToDevelopS
7 years agoExplorer | Level 4
Way to have a Dropbox folder selector
Hi there! So just wondering if there is a package or feature that can get a user's dropbox folder and upload documents to that file path using an api POST call to upload a document? For more inform...
IlikeToDevelopS
7 years agoExplorer | Level 4
Thanks for the reply!
Okay, is there a way to get a list of folders for a user's dropbox? say I want to get all folders from a user, is there an api call or any documentation that supports this feature/function?
Thanks Greg
Greg-DB
Dropbox Community Moderator
7 years agoYes, to list the contents of a connected user's account, you should use the /2/files/list_folder[/continue] methods:
- https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
- https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
To list the root, use the empty string "" as the path value.
Note that these methods will also list files too, but you can filter those out client-side.
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
About Discuss Dropbox Developer & API
Make connections with other developers
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, Facebook or Instagram.
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!