From 26b193d39d7b9750b0c296dca5502ca596d354f3 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 19 Jan 2020 03:38:22 +0900 Subject: [PATCH] fix (#5710) --- src/server/file/send-drive-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/file/send-drive-file.ts b/src/server/file/send-drive-file.ts index 0b14378589..8c57737911 100644 --- a/src/server/file/send-drive-file.ts +++ b/src/server/file/send-drive-file.ts @@ -98,7 +98,7 @@ export default async function(ctx: Koa.Context) { } if (isThumbnail || isWebpublic) { - const [mime, ext] = await detectMine(InternalStorage.resolvePath(key)); + const { mime, ext } = await detectType(InternalStorage.resolvePath(key)); const filename = rename(file.name, { suffix: isThumbnail ? '-thumb' : '-web', extname: ext ? `.${ext}` : undefined