- 0} />
+ 0 && !selectedModels.includes('')} />
diff --git a/src/routes/(app)/documents/+page.svelte b/src/routes/(app)/documents/+page.svelte
index d79056e24..9a0aa1301 100644
--- a/src/routes/(app)/documents/+page.svelte
+++ b/src/routes/(app)/documents/+page.svelte
@@ -67,7 +67,10 @@
if (inputFiles && inputFiles.length > 0) {
const file = inputFiles[0];
- if (SUPPORTED_FILE_TYPE.includes(file['type'])) {
+ if (
+ SUPPORTED_FILE_TYPE.includes(file['type']) ||
+ ['md'].includes(file.name.split('.').at(-1))
+ ) {
uploadDoc(file);
} else {
toast.error(`Unsupported File Type '${file['type']}'.`);
@@ -144,7 +147,10 @@
on:change={async (e) => {
if (inputFiles && inputFiles.length > 0) {
const file = inputFiles[0];
- if (SUPPORTED_FILE_TYPE.includes(file['type'])) {
+ if (
+ SUPPORTED_FILE_TYPE.includes(file['type']) ||
+ ['md'].includes(file.name.split('.').at(-1))
+ ) {
uploadDoc(file);
} else {
toast.error(`Unsupported File Type '${file['type']}'.`);