Skip to content

Commit

Permalink
fix(core): S3 copy object with foreign characters (#17151)
Browse files Browse the repository at this point in the history
* Testing overwriting the metadata

* chore: nx format:write update dirty files

* Found a cleaner work around

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 4a6defe commit b3e0878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/nest/aws/src/lib/s3.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class S3Service {
const input: CopyObjectRequest = {
Bucket: bucket,
Key: key,
CopySource: copySource,
CopySource: encodeURIComponent(copySource),
}
try {
return await this.s3Client.send(new CopyObjectCommand(input))
Expand Down

0 comments on commit b3e0878

Please sign in to comment.