We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
hanley
3 years agoExplorer | Level 3
One user can't see his Dropbox folders or files in my iOS app
My iOS app has had the Dropbox API integrated into it for several years. Our users use it to save and load files into our app. This week one user reported that it's not showing any of their folde...
- 3 years ago
How are you listing the contents of the account? Feel free to share the relevant code snippet(s) so we can take a look.
From the description though, it sounds like you might only have listFolder and not listFolderContinue implemented and so are sometimes only retrieving a partial listing.
This functionality is paginated and you are not always guaranteed to get all of the results back in a single listFolder call, so make sure you implement support for listFolderContinue as well. Refer to the listFolder and listFolderContinue documentation for information on doing so. (Those are links to the methods in the official Dropbox API v2 Objective-C SDK, but refer to the documentation for whichever SDK you're using, if any, or the API documentation itself.)
Greg-DB
Dropbox Community Moderator
3 years agoThe exact number of entries returned per page is not guaranteed, and can be small in some cases. The listFolder[Continue] functionality can return even just one entry per page sometimes.
There are a few factors that can affect what/how much is returned in a single call, and that can vary over time and across accounts due to a number of factors, e.g., as the state and contents of the account changes, etc, so you need to make sure you always have both listFolder and listFolderContinue implemented.
hanley
3 years agoExplorer | Level 3
Ok. I'll give that a shot. Thanks.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!