mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-05 17:53:54 +02:00
Allow multiple files to be selected for file upload
This commit is contained in:
@@ -186,6 +186,7 @@ export function ChatInputBar({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
const input = document.createElement("input");
|
const input = document.createElement("input");
|
||||||
input.type = "file";
|
input.type = "file";
|
||||||
|
input.multiple = true; // Allow multiple files
|
||||||
input.onchange = (event: any) => {
|
input.onchange = (event: any) => {
|
||||||
const files = Array.from(
|
const files = Array.from(
|
||||||
event?.target?.files || []
|
event?.target?.files || []
|
||||||
|
Reference in New Issue
Block a user