From 9b6378813535291f78d0694e239b71d949823370 Mon Sep 17 00:00:00 2001 From: Marclass Date: Wed, 17 Jan 2024 16:28:52 -0700 Subject: [PATCH] Update constants.ts include new upload types in front end --- src/lib/constants.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 5d77834b3..3d1cfb05c 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -13,10 +13,14 @@ export const REQUIRED_OLLAMA_VERSION = '0.1.16'; export const SUPPORTED_FILE_TYPE = [ 'application/pdf', - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'text/markdown', 'text/plain', - 'text/csv' + 'text/csv', + 'text/xml', + 'text/x-python', + 'text/css', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/octet-stream', + 'application/x-javascript', ]; // Source: https://kit.svelte.dev/docs/modules#$env-static-public