Skip to content

Commit aef6bbb

Browse files
committed
fix: do not apply prefix when getting file contents as buffer or stream
1 parent 7ac734c commit aef6bbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/modules/providers/file-s3/src/services

packages/modules/providers/file-s3/src/services/s3-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export class S3FileService extends AbstractFileProviderService {
247247
)
248248
}
249249

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

269-
const fileKey = `${this.config_.prefix}${file.fileKey}`
269+
const fileKey = file.fileKey
270270
const response = await this.client_.send(
271271
new GetObjectCommand({
272272
Key: fileKey,

0 commit comments

Comments
 (0)