trim filename

This commit is contained in:
syuilo 2018-10-12 04:01:45 +09:00
parent f8fc31f14a
commit 9535759787
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 1 deletions

View File

@ -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()}`;