🐛 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 encryptionOptions: EncryptionConfiguration;
|
||||||
private algorithm = "aes-256-cbc";
|
private algorithm = "aes-256-cbc";
|
||||||
private homeDir = "tdrive";
|
private homeDir = "/tdrive";
|
||||||
|
|
||||||
api(): StorageAPI {
|
api(): StorageAPI {
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ export class FileServiceImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFilePath(entity: File): string {
|
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.user_id || "anonymous"
|
||||||
}/${entity.id}`;
|
}/${entity.id}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user