Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
neunygph
8 years agoExplorer | Level 4
Question about list_folder method
1. Is it possible to limit the number of item return from the list_folder method ? For instance there are 300 item in a folder, but we only want to return the first 100 item, can we passing a limit value to the parameter so it will only return 100 item at a time ?
2. Also, it it possible to filter out which kind/type of file we want to return from the list_folder method ? For instance I only want to retrieve images and not any other file types
Thanks,
Phuong
4 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
1. No, it's not possible to specify a custom limit like this, but I'll be sure to pass this along as a feature request.
2. No, the Dropbox API doesn't offer server-side filtering like that. You'll need to filter client-side. We'll consider it a feature request as well. - neunygph8 years agoExplorer | Level 4
Oh I see, thanks Greg.
- Greg-DB8 years ago
Dropbox Community Moderator
You can now set an approximate limit on the list_folder page size using the "limit" parameter:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder - neunygph8 years agoExplorer | Level 4
This is a really great news, it would increase user experience. Thank you very much Greg.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!