mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Allow docx conversion in the chatFunction.ts
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user