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: legacy image upload compatible (#10803)

KVOJJJin3e2b8a8d0229
diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx
index b853100b69d..f9f3c27dc6d 100644
--- a/web/app/components/share/text-generation/index.tsx
+++ b/web/app/components/share/text-generation/index.tsx
@@ -389,7 +389,10 @@ const TextGeneration: FC<IMainProps> = ({
const { user_input_form, more_like_this, file_upload, text_to_speech }: any = appParams
setVisionConfig({
- ...file_upload.image,
+ // legacy of image upload compatible
+ ...file_upload,
+ transfer_methods: file_upload.allowed_upload_methods,
+ // legacy of image upload compatible
image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
fileUploadConfig: appParams?.system_parameters,
})