Skip to content

Commit

Permalink
fix: Allow application/octet-stream mimetype to fall through to exten…
Browse files Browse the repository at this point in the history
…sion matching in DocumentConverter
  • Loading branch information
tommoor committed Feb 11, 2024
1 parent 8da07fc commit 93c3253
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/utils/DocumentConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 93c3253

Please sign in to comment.