diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 40b56cd8..e068aefd 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -111,6 +111,8 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom if (name && name.indexOf('.') > -1) { const mime = extensionToMime(name); + console.log("mime: ", mime); + if (mime) { return mime; }