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: allow fallback to remote_url when url is not provided (#12455)

Hiroshi Fujita4295cefeb11c
diff --git a/api/factories/file_factory.py b/api/factories/file_factory.py
index 1e1e3fb7964..c6dc748e93b 100644
--- a/api/factories/file_factory.py
+++ b/api/factories/file_factory.py
@@ -158,7 +158,7 @@ def _build_from_remote_url(
tenant_id: str,
transfer_method: FileTransferMethod,
) -> File:
- url = mapping.get("url")
+ url = mapping.get("url") or mapping.get("remote_url")
if not url:
raise ValueError("Invalid file url")