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:
5
.changeset/spotty-mayflies-bathe.md
Normal file
5
.changeset/spotty-mayflies-bathe.md
Normal file
@@ -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(
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user