Skip to content

Commit b22d407

Browse files
committed
fix:Return the backend URL for private files of local file provider
1 parent ba3b1da commit b22d407

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

-5
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class LocalFileService extends AbstractFileProviderService {
7777
return
7878
}
7979

80-
// For private files, we simply return the file path, which can then be loaded manually by the backend.
8180
// The local file provider doesn't support presigned URLs for private files (i.e files not placed in /static).
8281
async getPresignedDownloadUrl(
8382
file: FileTypes.ProviderGetFileDTO
@@ -96,10 +95,6 @@ export class LocalFileService extends AbstractFileProviderService {
9695
)
9796
}
9897

99-
if (isPrivate) {
100-
return filePath
101-
}
102-
10398
return this.getUploadFileUrl(file.fileKey)
10499
}
105100

0 commit comments

Comments
 (0)