Forum Discussion

James Z.3's avatar
James Z.3
New member | Level 1
10 years ago

[Swifty] File search pagination problem

I have a method that counts the number of files that match a query. I'm noticing a problem where the "start" parameter isn't respected. In other words, the following calls return the exact same result: https://gist.github.com/jamesfzhang/8f5ce1bbd79161377eef

The documentation says the start parameter means "the starting index within the search results (used for paging)." So you'd expect to see different results when changing the start parameter. Can anyone else reproduce this?

EDIT: I solved the problem, it was my mistake. The offset counter I was keeping track of wasn't updating properly in the response callback.

No RepliesBe the first to reply

About Dropbox API Support & Feedback

Node avatar for 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!