Skip to content

Commit

Permalink
Fix string interpolation of presignedPutObject (#1125)
Browse files Browse the repository at this point in the history
Co-authored-by: Prakash Senthil Vel <23444145+prakashsvmx@users.noreply.github.com>
  • Loading branch information
gyugyu and prakashsvmx committed Apr 20, 2023
1 parent 1941a39 commit 82b0659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/minio.js
Expand Up @@ -1946,10 +1946,10 @@ export class Client {
// * `expiry` _number_: expiry in seconds (optional, default 7 days)
presignedPutObject(bucketName, objectName, expires, cb) {
if (!isValidBucketName(bucketName)) {
throw new errors.InvalidBucketNameError('Invalid bucket name: ${bucketName}')
throw new errors.InvalidBucketNameError(`Invalid bucket name: ${bucketName}`)
}
if (!isValidObjectName(objectName)) {
throw new errors.InvalidObjectNameError('Invalid object name: ${objectName}')
throw new errors.InvalidObjectNameError(`Invalid object name: ${objectName}`)
}
return this.presignedUrl('PUT', bucketName, objectName, expires, cb)
}
Expand Down

0 comments on commit 82b0659

Please sign in to comment.