0

I'm making a file manager and using the api provided by aws s3, but the response here is the cursor paging function, it's pretty bad that Fb clearly returns the next key and the back key here. then only provide key next and I had to handle key back manually....

And the problem is that as far as I know large data pages like AMZ or Fb will use cursor pagination. So is there any way for me to calculate the total number of pages to display the buttons 1 2 3... like this?

1

Hope I will get help from those who have had the same problem as me, thanks

vimuth
  • 5,064
  • 33
  • 79
  • 116
MeiKo
  • 3
  • 3
  • Yes, there is kind of a way. You need to [count how many objects](https://stackoverflow.com/a/50366802/3155240) there are in the bucket and divide by how many objects you want on the page. Preferably with an "order by". – Shmack Dec 24 '22 at 16:32

0 Answers0