How to stream download and upload image to aws s3

hi all.

can someone help me, how to download image from url and then upload it to aws s3.
i’m need pure javascript not javascript code for nodejs. i’m already search on google but i’m don’t have solution.

please someone help me or maybe @KentonVarda @zack can help me.
thank you.

One way to upload PUT Rest API.

Also, this could be a good read.

I use DigitalOcean Spaces for simplicity.