fix: do not apply prefix when getting file contents as buffer or stream (#12831)

* fix: do not apply prefix when getting file contents as buffer or stream

* Create spotty-mayflies-bathe.md
This commit is contained in:
Harminder Virk
2025-06-26 13:58:17 +05:30
committed by GitHub
parent 94920c3f6d
commit 10dff3e266
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/file-s3": patch
---
fix: do not apply prefix when getting file contents as buffer or stream

View File

@@ -247,7 +247,7 @@ export class S3FileService extends AbstractFileProviderService {
)
}
const fileKey = `${this.config_.prefix}${file.fileKey}`
const fileKey = file.fileKey
const response = await this.client_.send(
new GetObjectCommand({
Key: fileKey,
@@ -266,7 +266,7 @@ export class S3FileService extends AbstractFileProviderService {
)
}
const fileKey = `${this.config_.prefix}${file.fileKey}`
const fileKey = file.fileKey
const response = await this.client_.send(
new GetObjectCommand({
Key: fileKey,