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:
@@ -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