I am working on a project where I have a table containing S3 documents (and their corresponding keys). Now, I'm encountering a problem: I want to download the files from selected rows in the table as a ZIP file. Despite going through various discussions and topics on this matter, I am unable to implement it. Could someone help me step-by-step to overcome this challenge? Thank you very much in advance for your help!
Instead of calling read queries for each file like this, img.file(query3.data.Key, query3.data.Body, {base64: true}); img.file(query5.data.Key, query5.data.Body, {base64: true});
you could have a Javascript loop that calls a S3 read query for each selected row in the table. Then, you could map over that array: