From 61d096533c914d7a55160b4b1bf93eddbd0ea1d2 Mon Sep 17 00:00:00 2001 From: Weves Date: Fri, 31 May 2024 12:09:29 -0700 Subject: [PATCH] Allow multiple files to be selected for file upload --- web/src/app/chat/input/ChatInputBar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/app/chat/input/ChatInputBar.tsx b/web/src/app/chat/input/ChatInputBar.tsx index c74cb171e..31e26ce01 100644 --- a/web/src/app/chat/input/ChatInputBar.tsx +++ b/web/src/app/chat/input/ChatInputBar.tsx @@ -186,6 +186,7 @@ export function ChatInputBar({ onClick={() => { const input = document.createElement("input"); input.type = "file"; + input.multiple = true; // Allow multiple files input.onchange = (event: any) => { const files = Array.from( event?.target?.files || []