Skip to content
Snippets Groups Projects
Commit 26b193d3 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

fix (#5710)

parent ab1b0cc8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment