Answers for "nodejs aws s3 stream upload"

1

nodejs aws s3 stream upload

inputStream
  .pipe(uploadFromStream(s3));

function uploadFromStream(s3) {
  var pass = new stream.PassThrough();

  var params = {Bucket: BUCKET, Key: KEY, Body: pass};
  s3.upload(params, function(err, data) {
    console.log(err, data);
  });

  return pass;
}
Posted by: Guest on October-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language