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] #21678 User input of remote file link on the run page form causes conversation/message interface error (#21683)
Qiang Lee9ded6f6a4035
diff --git a/api/models/model.py b/api/models/model.pyindex ce5f449f87f..93737043d5b 100644--- a/api/models/model.py+++ b/api/models/model.py@@ -676,7 +676,7 @@ class Conversation(Base):if isinstance(value, dict) and value.get("dify_model_identity") == FILE_MODEL_IDENTITY:if value["transfer_method"] == FileTransferMethod.TOOL_FILE:value["tool_file_id"] = value["related_id"]- elif value["transfer_method"] == FileTransferMethod.LOCAL_FILE:+ elif value["transfer_method"] in [FileTransferMethod.LOCAL_FILE, FileTransferMethod.REMOTE_URL]:value["upload_file_id"] = value["related_id"]inputs[key] = file_factory.build_from_mapping(mapping=value, tenant_id=value["tenant_id"])elif isinstance(value, list) and all(@@ -686,7 +686,7 @@ class Conversation(Base):for item in value:if item["transfer_method"] == FileTransferMethod.TOOL_FILE:item["tool_file_id"] = item["related_id"]- elif item["transfer_method"] == FileTransferMethod.LOCAL_FILE:+ elif item["transfer_method"] in [FileTransferMethod.LOCAL_FILE, FileTransferMethod.REMOTE_URL]:item["upload_file_id"] = item["related_id"]inputs[key].append(file_factory.build_from_mapping(mapping=item, tenant_id=item["tenant_id"]))@@ -946,7 +946,7 @@ class Message(Base):if isinstance(value, dict) and value.get("dify_model_identity") == FILE_MODEL_IDENTITY:if value["transfer_method"] == FileTransferMethod.TOOL_FILE:value["tool_file_id"] = value["related_id"]- elif value["transfer_method"] == FileTransferMethod.LOCAL_FILE:+ elif value["transfer_method"] in [FileTransferMethod.LOCAL_FILE, FileTransferMethod.REMOTE_URL]:value["upload_file_id"] = value["related_id"]inputs[key] = file_factory.build_from_mapping(mapping=value, tenant_id=value["tenant_id"])elif isinstance(value, list) and all(@@ -956,7 +956,7 @@ class Message(Base):for item in value:if item["transfer_method"] == FileTransferMethod.TOOL_FILE:item["tool_file_id"] = item["related_id"]- elif item["transfer_method"] == FileTransferMethod.LOCAL_FILE:+ elif item["transfer_method"] in [FileTransferMethod.LOCAL_FILE, FileTransferMethod.REMOTE_URL]:item["upload_file_id"] = item["related_id"]inputs[key].append(file_factory.build_from_mapping(mapping=item, tenant_id=item["tenant_id"]))return inputs