fix: Allow application/octet-stream mimetype to fall through to extension matching in DocumentConverter

This commit is contained in:
Tom Moor
2024-02-11 13:38:27 -05:00
parent 8da07fc118
commit 93c32536f9

View File

@@ -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":