Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spotty-mayflies-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/file-s3": patch
---

fix: do not apply prefix when getting file contents as buffer or stream
4 changes: 2 additions & 2 deletions packages/modules/providers/file-s3/src/services/s3-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down