Skip to content
Advertisement

How to upload multiple images from a folder to S3 Bucket?

I’m trying to implement code in python for uploading multiple images into an S3 bucket. With only one image I can do it normally, but when I implemented this for loop, the following error started to appear:

JavaScript

And this is the function I’ve been able to develop so far with the help of AWS documentation:

JavaScript

If anyone has any ideas to solve this problem, I appreciate it.

Advertisement

Answer

Change the line

JavaScript

to

JavaScript

should resolve your issue.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement