Skip to content

Commit

Permalink
fix: storage encoding on copy (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Jan 9, 2025
1 parent d6db70e commit 4c945f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export class ObjectStorage {
mustBeValidKey(destinationObjectName)

const newVersion = randomUUID()
const s3SourceKey = `${this.db.tenantId}/${this.bucketId}/${sourceObjectName}`
const s3SourceKey = encodeURIComponent(
`${this.db.tenantId}/${this.bucketId}/${sourceObjectName}`
)
const s3DestinationKey = `${this.db.tenantId}/${destinationBucket}/${destinationObjectName}`

await this.db.testPermission((db) => {
Expand Down

0 comments on commit 4c945f9

Please sign in to comment.