cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Dropbox Pagination - No way to go to previous page

Dropbox Pagination - No way to go to previous page

coderkev
Explorer | Level 3
Go to solution

I am using /list_folders and /list_folders/continue to create a paginated file gallery in my Web application.

 

I want to make any page in this gallery shareable, for example I want to share page 3 of the gallery with someone.

 

To achieve this you can put the cursor from the list_folder endpoints in the URL so the person you shared the link with sees the same page. However, they will only be able to go the next page when the load that link and not the previous page.

 

How can I achieve forward AND back pagination on shared link that doesn't start on the first page?

1 Accepted Solution

Accepted Solutions

DB-Des
Dropbox Engineer
Go to solution

Hi there!

 

Pagination with the Dropbox API only goes forward. You may want to have your application process all the results first and then use that data as needed in your application.

View solution in original post

3 Replies 3

DB-Des
Dropbox Engineer
Go to solution

Hi there!

 

Pagination with the Dropbox API only goes forward. You may want to have your application process all the results first and then use that data as needed in your application.

coderkev
Explorer | Level 3
Go to solution

Are there any plans in your roadmap to allow it to go backward? Processing all results at once sounds like it could create issues. May have to create a database collection of our own just to track cursors..

Greg-DB
Dropbox Staff
Go to solution

No, Dropbox does not have plans to update the API to support reversing through paginated API responses.

Need more support?