From a3d710352f7f59673d3fd58a777e1109a9cf4195 Mon Sep 17 00:00:00 2001 From: gary-singh-filestack Date: Thu, 4 Jan 2024 17:52:57 +0530 Subject: [PATCH] fix --- 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 fec33faa..59abc8b9 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -104,7 +104,7 @@ export const uniqueId = (len: number = 10): string => { export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Promise => { let type = await fromBuffer(file); - const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip']; + const excludedMimetypes = ['text/plain', 'application/x-ms', 'application/x-msi', 'application/zip']; if (type && excludedMimetypes.indexOf(type.mime) === -1) { return type.mime;