From 835fa80a4bc360768f7c8d0da57a6465d1a99f75 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 9 Nov 2024 18:51:00 -0800 Subject: [PATCH] Allow docx conversion in the chatFunction.ts --- src/interface/web/app/common/chatFunctions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interface/web/app/common/chatFunctions.ts b/src/interface/web/app/common/chatFunctions.ts index 98ca2497..b4777ba8 100644 --- a/src/interface/web/app/common/chatFunctions.ts +++ b/src/interface/web/app/common/chatFunctions.ts @@ -294,6 +294,9 @@ export async function packageFilesForUpload(files: FileList): Promise fileType = "text/html"; } else if (fileExtension === "pdf") { fileType = "application/pdf"; + } else if (fileExtension === "docx") { + fileType = + "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; } else { // Skip this file if its type is not supported resolve();