diff --git a/confiture-rest-api/src/audits/file-storage.service.ts b/confiture-rest-api/src/audits/file-storage.service.ts index 11acaa38..a555ab06 100644 --- a/confiture-rest-api/src/audits/file-storage.service.ts +++ b/confiture-rest-api/src/audits/file-storage.service.ts @@ -67,9 +67,9 @@ export class FileStorageService { (d) => new CopyObjectCommand({ Bucket: this.config.get("S3_BUCKET"), - CopySource: `/${this.config.get("S3_BUCKET")}/${ - d.originalKey - }`, + CopySource: encodeURIComponent( + `/${this.config.get("S3_BUCKET")}/${d.originalKey}` + ), Key: d.destinationKey, ACL: "public-read" })