🐛 file storage leading slash removed (#243)
This commit is contained in:
@@ -23,7 +23,7 @@ export default class StorageService extends TdriveService<StorageAPI> implements
|
||||
|
||||
private encryptionOptions: EncryptionConfiguration;
|
||||
private algorithm = "aes-256-cbc";
|
||||
private homeDir = "tdrive";
|
||||
private homeDir = "/tdrive";
|
||||
|
||||
api(): StorageAPI {
|
||||
return this;
|
||||
|
||||
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user