Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: cannot change file uploader method (#3710)

Luvian7796160837d2e1
diff --git a/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx b/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx
index 452e3c9152e..b481420aaa2 100644
--- a/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx
+++ b/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx
@@ -38,7 +38,7 @@ const ParamConfigContent = ({
} = featuresStore!.getState()
const newFeatures = produce(features, (draft) => {
if (draft.file?.image) {
- if (TransferMethod.all)
+ if (value === TransferMethod.all)
draft.file.image.transfer_methods = [TransferMethod.remote_url, TransferMethod.local_file]
else
draft.file.image.transfer_methods = [value]