How to Upload images from FileReader to Amazon s3, using meteor

前端 未结 2 1757
北海茫月
北海茫月 2021-02-09 02:21

Im trying to build an image uploader with meteor to Amazon S3. Thanks to Hubert OG, Ive found AWS-SDK which makes things easy.

My problem is that the data uploaded seems

2条回答
  •  花落未央
    2021-02-09 02:55

    The body should be converted to buffer – see the documentation.

    So instead of Body: data you should have Body: new Buffer(data, 'binary').

提交回复
热议问题