diff --git a/tdrive/backend/node/src/core/platform/services/storage/index.ts b/tdrive/backend/node/src/core/platform/services/storage/index.ts index be980b60..0dc5466a 100644 --- a/tdrive/backend/node/src/core/platform/services/storage/index.ts +++ b/tdrive/backend/node/src/core/platform/services/storage/index.ts @@ -23,7 +23,7 @@ export default class StorageService extends TdriveService implements private encryptionOptions: EncryptionConfiguration; private algorithm = "aes-256-cbc"; - private homeDir = "tdrive"; + private homeDir = "/tdrive"; api(): StorageAPI { return this; diff --git a/tdrive/backend/node/src/services/files/services/index.ts b/tdrive/backend/node/src/services/files/services/index.ts index 56729d89..9766ab03 100644 --- a/tdrive/backend/node/src/services/files/services/index.ts +++ b/tdrive/backend/node/src/services/files/services/index.ts @@ -311,7 +311,7 @@ export class FileServiceImpl { } function getFilePath(entity: File): string { - return `/${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${ + return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${ entity.user_id || "anonymous" }/${entity.id}`; }