mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 09:25:06 +01:00
Allow docx conversion in the chatFunction.ts
This commit is contained in:
parent
459318be13
commit
835fa80a4b
1 changed files with 3 additions and 0 deletions
|
@ -294,6 +294,9 @@ export async function packageFilesForUpload(files: FileList): Promise<FormData>
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue