We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6db70e commit 4c945f9Copy full SHA for 4c945f9
src/storage/object.ts
@@ -402,7 +402,9 @@ export class ObjectStorage {
402
mustBeValidKey(destinationObjectName)
403
404
const newVersion = randomUUID()
405
- const s3SourceKey = `${this.db.tenantId}/${this.bucketId}/${sourceObjectName}`
+ const s3SourceKey = encodeURIComponent(
406
+ `${this.db.tenantId}/${this.bucketId}/${sourceObjectName}`
407
+ )
408
const s3DestinationKey = `${this.db.tenantId}/${destinationBucket}/${destinationObjectName}`
409
410
await this.db.testPermission((db) => {
0 commit comments