mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 03:43:09 +02:00
trim filename
This commit is contained in:
parent
f8fc31f14a
commit
9535759787
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ async function job(file: IDriveFile): Promise<any> {
|
|||
|
||||
const minio = new Minio.Client(config.drive.config);
|
||||
|
||||
const name = file.filename;
|
||||
const name = file.filename.substr(0, 50);
|
||||
const keyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
||||
const key = `${keyDir}/${name}`;
|
||||
const thumbnailKeyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
||||
|
|
Loading…
Reference in a new issue