feat: Add support for product export in UI (#8281)
* feat: Add support for product export in UI * fix:Return the backend URL for private files of local file provider
This commit is contained in:
1 parent
1d773c536f
commit
b539c6d5bb
18 files changed
+564
-343
No files matched your search
@@ -77,7 +77,6 @@ export class LocalFileService extends AbstractFileProviderService {
|
||||
return
|
||||
}
|
||||
|
||||
// For private files, we simply return the file path, which can then be loaded manually by the backend.
|
||||
// The local file provider doesn't support presigned URLs for private files (i.e files not placed in /static).
|
||||
async getPresignedDownloadUrl(
|
||||
file: FileTypes.ProviderGetFileDTO
|
||||
@@ -96,10 +95,6 @@ export class LocalFileService extends AbstractFileProviderService {
|
||||
)
|
||||
}
|
||||
|
||||
if (isPrivate) {
|
||||
return filePath
|
||||
}
|
||||
|
||||
return this.getUploadFileUrl(file.fileKey)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user