From 95703f431184ab76b6e40b74f08c16ca36af6ee3 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 0b1437858..8c5773791 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