Copying an image from URL to Amazon S3

Hi there, I’ve never used any of AWS services before, much less Amazon S3. I’ve googled around but found nothing specific to my needs on the Meteor / React app platform (I’m assuming that the React portion doesn’t have much to do with it). Most of the examples I find are related to a user uploading the file instead of taking an image from a URL.

What I’m trying to do:

  1. Given a URL to an image.
  2. Grab a copy of that image.
  3. Save it to Amazon S3.
  4. Save the link to it in my MongoDB so I can feature it on my app.

There are so many S3 packages and some of them link to CollectionFS which I don’t know if I actually need to use for my use case. I would really appreciate it if someone can point me in the right direction. Thanks in advance!

Is this action performed on the sever or client?

I think you need to be able to temporary download the image into the filesystem and then upload it to s3. S3 cannot grab the url itself

CollectionFS does support this:

so it seem you just have to supply an url and it will load it. CollectionFS also supports S3 so it can store it there without issues.