From 25691f0c45abe2ea29312dd2907450f888461676 Mon Sep 17 00:00:00 2001 From: gary-singh-filestack Date: Fri, 2 Feb 2024 17:00:44 +0530 Subject: [PATCH] log after and inside conditions --- src/lib/utils/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index e85ead2e..d412caaa 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -125,8 +125,10 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom } // if we cant find types by extensions and we have magic bytes fallback to it if (type) { + console.log('in the cond: ',type.mime) return type.mime; } + console.log('after the cond: ',type) try { if (isutf8(file)) {