From 7954f39633c8429ddbb9b4535ce1cc37e5f0c36e Mon Sep 17 00:00:00 2001 From: Debanjum Date: Mon, 11 Nov 2024 04:06:17 -0800 Subject: [PATCH] Use accept param to file input to indicate supported file types in web app Remove unused total size calculations in chat input --- .../web/app/components/chatInputArea/chatInputArea.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index 49157f56..8b276562 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -257,9 +257,6 @@ export const ChatInputArea = forwardRef((pr setConvertedAttachedFiles(data); }); - const totalSize = Array.from(files).reduce((acc, file) => acc + file.size, 0); - const totalSizeInMB = totalSize / (1024 * 1024); - // Set focus to the input for user message after uploading files chatInputRef?.current?.focus(); } @@ -612,6 +609,7 @@ export const ChatInputArea = forwardRef((pr >