Skip to content

Commit 2c6d402

Browse files
authored
fix(docs): Fix readme example
Fix readme
2 parents a0f0ded + d03d9cb commit 2c6d402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const client = new S3({
3939
const uploadToS3 = async file => {
4040
const { stream, filename, mimetype, encoding } = file
4141

42-
const response = await s3Client
42+
const response = await client
4343
.upload({
4444
Key: filename,
4545
ACL: 'public-read',
@@ -48,8 +48,8 @@ const uploadToS3 = async file => {
4848
.promise()
4949

5050
return {
51-
name: filename
52-
url: response.Location,
51+
name: filename,
52+
url: response.Location
5353
}
5454
}
5555

0 commit comments

Comments
 (0)