From 93c32536f9f50e790d1adb0df216067363179781 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 11 Feb 2024 13:38:27 -0500 Subject: [PATCH] fix: Allow application/octet-stream mimetype to fall through to extension matching in DocumentConverter --- server/utils/DocumentConverter.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/utils/DocumentConverter.ts b/server/utils/DocumentConverter.ts index 7daea3437..e2f4865f4 100644 --- a/server/utils/DocumentConverter.ts +++ b/server/utils/DocumentConverter.ts @@ -23,11 +23,6 @@ export class DocumentConverter { switch (mimeType) { case "application/msword": return this.confluenceToMarkdown(content); - case "application/octet-stream": - if (fileName.endsWith(".docx")) { - return this.docXToMarkdown(content); - } - throw FileImportError(`File type ${mimeType} not supported`); case "application/vnd.openxmlformats-officedocument.wordprocessingml.document": return this.docXToMarkdown(content); case "text/html":