Upload multiple files from Retool storage to Amazon S3

Hi Retool Community,

I need help uploading (All image)multiple files from Retool storage to Amazon S3. I have an S3 bucket set up and an IAM user with the necessary permissions.

How can I create a query in Retool to:

  1. Retrieve multiple files from Retool storage.
  2. Upload these files to my S3 bucket.

Any guidance or code examples would be greatly appreciated!

Thanks