javascript - Request images and save them to AWS S3 -
i have array of urls images images = ['url1', 'url2', ...]
.
i want save images amazon s3 server , return array of new urls, pointing s3 instead of original urls.
i using node.js, don't know tools use.
i guess have use, instance, request
or axios
, read image binary , save again.
i did same few days ago. wrote small shell script u can use wget/curl download images. or if in python u can use wget package there too. python has
also, install aws cli or s3cmd on ur server. using these tools straight forward copy files on s3.. u can again invoke these commands shell script.
Comments
Post a Comment