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:
Stevche Radevski
2024-07-29 21:50:22 +02:00
committed by GitHub
parent 1d773c536f
commit b539c6d5bb
18 changed files with 564 additions and 343 deletions
@@ -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)
}