Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosSacASac committed Jun 13, 2021
1 parent bdb61f2 commit 843ac84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/store-files-on-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const s3Client = new AWS.S3({
});

const uploadStream = (file) => {
const pass = PassThrough();
const pass = new PassThrough();
s3Client.upload(
{
Bucket: 'demo-bucket',
Key: file.newName,
Key: file.newFilename,
Body: pass,
},
(err, data) => {
Expand Down

0 comments on commit 843ac84

Please sign in to comment.