change upload limit from 25MB to 1GB

This commit is contained in:
2026-07-07 13:43:41 +00:00
parent aa39b6a5be
commit c86c602294
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(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;
}, []);