diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 7e26bb48..e1ec464f 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -108,7 +108,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom } catch(e) { console.warn("An exception occurred while processing the buffer:", e.message); } - console.log("name: ", name); + console.log("name: ", name.indexOf('.')); if (name && name.indexOf('.') > -1) { const mime = extensionToMime(name);