From 9535759787c031e33db2b7a58305ffc19b5b6ec8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Oct 2018 04:01:45 +0900 Subject: [PATCH] trim filename --- src/tools/move-drive-files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/move-drive-files.ts b/src/tools/move-drive-files.ts index 3921f9716..8a1e94450 100644 --- a/src/tools/move-drive-files.ts +++ b/src/tools/move-drive-files.ts @@ -31,7 +31,7 @@ async function job(file: IDriveFile): Promise { 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()}`;