From c86c602294d717433e9eee02aafdbe14d7a4a8be Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 7 Jul 2026 13:43:41 +0000 Subject: [PATCH] change upload limit from 25MB to 1GB --- internal/upload/handlers.go | 2 +- web/src/components/MessageInput.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/upload/handlers.go b/internal/upload/handlers.go index 87161c5..ff5e240 100644 --- a/internal/upload/handlers.go +++ b/internal/upload/handlers.go @@ -14,7 +14,7 @@ import ( "github.com/minio/minio-go/v7/pkg/credentials" ) -const maxUploadSize = 25 << 20 // 25 MB per file +const maxUploadSize = 1 << 30 // 1 GB per file var allowedExtensions = map[string]bool{ ".jpg": true, ".jpeg": true, ".png": true, ".gif": true, ".webp": true, diff --git a/web/src/components/MessageInput.tsx b/web/src/components/MessageInput.tsx index dde1b8b..79781fe 100644 --- a/web/src/components/MessageInput.tsx +++ b/web/src/components/MessageInput.tsx @@ -371,7 +371,7 @@ export const MessageInput = forwardRef(f const validateFile = useCallback((file: File): string | null => { const ext = file.name.slice(file.name.lastIndexOf(".")).toLowerCase(); if (!SAFE_EXTS.has(ext)) return `File type "${ext}" not allowed.`; - if (file.size > 25 * 1024 * 1024) return "File too large (max 25 MB)."; + if (file.size > 1024 * 1024 * 1024) return "File too large (max 1 GB)."; return null; }, []);