By bor55h
Hey guys.
I’m using Digital Ocean spaces to store the files the users upload. I currently have around 6 million. I’m using Node JS and AWS-SDK to manage all these files, and right now I want to get the list of keys of all these files. However, when I try S3.listObjectV2, it doesn’t return any continuation token or anything so that I’m stuck with the first 1000 files. Looking forward to your reply.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hello. Sorry for the trouble. We’ve noted here in the API documentation that the version 2 type list is not currently supported by the Spaces API.
If you use listObjects instead of listObjectsV2 you should see a result which includes the continuation token.
Be sure to check the documentation how the token is named!
AWS S3: ContinuationToken and NextContinuationToken DigitalOcean Spaces: Marker and NextMarker
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.