diff --git a/src/file-info.ts b/src/file-info.ts index 73631d7..e5f888e 100644 --- a/src/file-info.ts +++ b/src/file-info.ts @@ -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; }