🪣 S3 home directory for files

This commit is contained in:
Montassar Ghanmy
2023-09-28 17:04:41 +01:00
committed by GitHub
parent a6fa4240b5
commit b020118a6a
3 changed files with 10 additions and 1 deletions
@@ -311,5 +311,7 @@ export class FileServiceImpl {
}
function getFilePath(entity: File): string {
return `/tdrive/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}`;
}