]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
webui : bump max upload file size to 500MB (#13779)
authorXuan-Son Nguyen <redacted>
Sun, 25 May 2025 17:02:18 +0000 (19:02 +0200)
committerGitHub <redacted>
Sun, 25 May 2025 17:02:18 +0000 (18:02 +0100)
tools/server/public/index.html.gz
tools/server/webui/src/components/useChatExtraContext.tsx

index 3f1d3f31dcbf924b0e18717ac52a14d9d108d0ed..8d4e392ff331524e95e9ba1334739503dd367ed7 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index 42765524067e22e1d3110962e46e7f65516e7b0f..6f0701290733513b15298efaa851bebec38cd90e 100644 (file)
@@ -46,8 +46,11 @@ export function useChatExtraContext(): ChatExtraContextApi {
     try {
       for (const file of files) {
         const mimeType = file.type;
-        if (file.size > 10 * 1024 * 1024) {
-          toast.error('File is too large. Maximum size is 10MB.');
+
+        // this limit is only to prevent accidental uploads of huge files
+        // it can potentially crashes the browser because we read the file as base64
+        if (file.size > 500 * 1024 * 1024) {
+          toast.error('File is too large. Maximum size is 500MB.');
           break;
         }