From 374f41cf04e1a4ac586b871bf896279e552758d9 Mon Sep 17 00:00:00 2001 From: gary-singh-filestack Date: Thu, 4 Jan 2024 11:07:15 +0530 Subject: [PATCH] remove buggy consoles --- src/lib/api/upload/file_tools.browser.ts | 1 - src/lib/utils/extensions.ts | 1 + src/lib/utils/index.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/api/upload/file_tools.browser.ts b/src/lib/api/upload/file_tools.browser.ts index a2995800..7a512e4c 100644 --- a/src/lib/api/upload/file_tools.browser.ts +++ b/src/lib/api/upload/file_tools.browser.ts @@ -180,7 +180,6 @@ export const getFile = (input: InputFile, sanitizeOptions?: SanitizeOptions): Pr let mime = file.type; let minimumBytes = 4100; if (!file.type || file.type.length === 0 || file.type === 'text/plain') { - console.log("file type: ",file.type) mime = await getMimetype(await res.slice(0, minimumBytes), filename); } diff --git a/src/lib/utils/extensions.ts b/src/lib/utils/extensions.ts index c19333e7..5fa3d7b4 100644 --- a/src/lib/utils/extensions.ts +++ b/src/lib/utils/extensions.ts @@ -97,6 +97,7 @@ export const ExtensionsMap = { 'iso', 'msp', 'buffer', + 'tdms', ], 'application/oda': ['oda'], 'application/oebps-package+xml': ['opf'], diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 26a42c42..bf347799 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -103,7 +103,6 @@ export const uniqueId = (len: number = 10): string => { */ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Promise => { let type = await fromBuffer(file); - console.log("type: ",type) const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip']; if (type && excludedMimetypes.indexOf(type.mime) === -1) {