Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: upload file component support multiple (#10817)
zxhlyh133de9a08717
diff --git a/web/app/components/base/file-uploader/file-input.tsx b/web/app/components/base/file-uploader/file-input.tsxindex e981278c14a..f7d659c66f7 100644--- a/web/app/components/base/file-uploader/file-input.tsx+++ b/web/app/components/base/file-uploader/file-input.tsx@@ -13,10 +13,19 @@ const FileInput = ({const files = useStore(s => s.files)const { handleLocalFileUpload } = useFile(fileConfig)const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const file = e.target.files?.[0]+ const targetFiles = e.target.files- if (file)- handleLocalFileUpload(file)+ if (targetFiles) {+ if (fileConfig.number_limits) {+ for (let i = 0; i < targetFiles.length; i++) {+ if (i + 1 + files.length <= fileConfig.number_limits)+ handleLocalFileUpload(targetFiles[i])+ }+ }+ else {+ handleLocalFileUpload(targetFiles[0])+ }+ }}const allowedFileTypes = fileConfig.allowed_file_types@@ -32,6 +41,7 @@ const FileInput = ({onChange={handleChange}accept={accept}disabled={!!(fileConfig.number_limits && files.length >= fileConfig?.number_limits)}+ multiple={!!fileConfig.number_limits && fileConfig.number_limits > 1}/>)}