🐛Fix file downloading

This commit is contained in:
Anton SHEPILOV
2024-02-26 18:56:27 +01:00
parent 07fc285721
commit 2cf553e4c0
@@ -311,5 +311,7 @@ export class FileServiceImpl {
} }
function getFilePath(entity: File): string { function getFilePath(entity: File): string {
return `/files/${entity.company_id}/${entity.user_id || "anonymous"}/${entity.id}`; return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
entity.user_id || "anonymous"
}/${entity.id}`;
} }