From 939ccacbfd76e1ef1d6824bfc81147888db1c92d Mon Sep 17 00:00:00 2001 From: gary-singh-filestack Date: Fri, 12 Jan 2024 11:37:48 +0530 Subject: [PATCH] log extension --- src/lib/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index b0126afe..861c7f30 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -116,7 +116,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom } try { - console.log("passed here: ",name.indexOf('.')); + console.log("passed here: ",name.split('.').pop()); if (name && name.indexOf('.') > -1) { const mime = extensionToMime(name);