How to Retrieve All Files from S3 Bucket When There Are More Than 1000 Files Using ColdFusion?
Hello,
I am currently working on an S3 integration using ColdFusion, and I'm facing an issue when trying to retrieve all the files from an S3 bucket. I am using the listAll() method, but it seems that it only returns a maximum of 1000 files, and I need to handle cases where there are more than 1000 files in the bucket.
I understand that Amazon S3 uses pagination for listing objects, and I need to handle the NextContinuationToken to paginate through the results, but I'm unsure how to implement this correctly in ColdFusion.
Has anyone experienced this issue or can offer advice on how to paginate through the list of objects in S3 using ColdFusion to retrieve more than 1000 files?
Here is the code I'm currently using:
<cfset allObjects = bucket.listAll()>
Can someone please guide me on how to modify this to handle pagination when there are more than 1000 objects in the bucket?
Thanks in advance!
