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上也沒有圖像。
任何建議
感謝