mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +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";
|
fileType = "text/html";
|
||||||
} else if (fileExtension === "pdf") {
|
} else if (fileExtension === "pdf") {
|
||||||
fileType = "application/pdf";
|
fileType = "application/pdf";
|
||||||
|
} else if (fileExtension === "docx") {
|
||||||
|
fileType =
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
||||||
} else {
|
} else {
|
||||||
// Skip this file if its type is not supported
|
// Skip this file if its type is not supported
|
||||||
resolve();
|
resolve();
|
||||||
|
|
Loading…
Reference in a new issue