mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 16:03:09 +02:00
fix (#5710)
This commit is contained in:
parent
ab1b0cc840
commit
26b193d39d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue