mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-02 08:58:11 +02:00
Allow multiple files to be selected for file upload
This commit is contained in:
parent
0543abac9a
commit
61d096533c
@ -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 || []
|
||||
|
Loading…
x
Reference in New Issue
Block a user