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:
1 parent
94920c3f6d
commit
10dff3e266
2 files changed
+7
-2
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/file-s3": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: do not apply prefix when getting file contents as buffer or stream
|
||||||
@@ -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(
|
const response = await this.client_.send(
|
||||||
new GetObjectCommand({
|
new GetObjectCommand({
|
||||||
Key: fileKey,
|
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(
|
const response = await this.client_.send(
|
||||||
new GetObjectCommand({
|
new GetObjectCommand({
|
||||||
Key: fileKey,
|
Key: fileKey,
|
||||||
|
|||||||
Reference in new issue
Block a user