diff --git a/web/app/components/header/account-setting/model-provider-page/declarations.ts b/web/app/components/header/account-setting/model-provider-page/declarations.ts index 1547032163..8a84376bea 100644 --- a/web/app/components/header/account-setting/model-provider-page/declarations.ts +++ b/web/app/components/header/account-setting/model-provider-page/declarations.ts @@ -14,6 +14,7 @@ export enum FormTypeEnum { radio = 'radio', boolean = 'boolean', files = 'files', + file = 'file', } export type FormOption = { diff --git a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx index bfa4a542bd..931c42f2c2 100644 --- a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx +++ b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx @@ -127,7 +127,8 @@ const InputVarList: FC = ({ const varInput = value[variable] const isNumber = type === FormTypeEnum.textNumber const isSelect = type === FormTypeEnum.select - const isFile = type === FormTypeEnum.files + const isFile = type === FormTypeEnum.file + const isFileArray = type === FormTypeEnum.files const isString = type !== FormTypeEnum.textNumber && type !== FormTypeEnum.files && type !== FormTypeEnum.select return (
@@ -165,6 +166,18 @@ const InputVarList: FC = ({ /> )} {isFile && ( + varPayload.type === VarType.file} + /> + )} + {isFileArray && (