2
我正在使用nodejs并试图直接从url上传文件到amazon s3。我们可以直接从url上传图片到亚马逊S3
这里是我的代码
knox.putFile('http://www.wikihow.com/Image: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上也没有图像。
任何建议
感谢