This commit is contained in:
tamaina 2023-02-09 13:12:09 +00:00
parent cd64162049
commit 29c6d8f37e

View File

@ -34,7 +34,7 @@ export async function detectType(path: string): Promise<{
return TYPE_SVG;
}
if (isMimeImage(type.mime, 'safe-file')) {
if (!isMimeImage(type.mime, 'safe-file')) {
return TYPE_OCTET_STREAM;
}