【问题标题】:Can we upload image directly from url to amazon S3我们可以直接从 url 上传图片到亚马逊 S3
【发布时间】:2015-01-19 04:53:45
【问题描述】:

我正在使用 nodejs 并尝试将文件从 url 直接上传到 amazon 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 上也没有图像。

任何建议

谢谢

【问题讨论】:

    标签: node.js amazon-web-services amazon-s3 knox-amazon-s3-client


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-09-12
      • 2016-01-20
      • 2015-11-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      • 1970-01-01
      • 2015-10-14
      • 1970-01-01
      相关资源
      最近更新 更多