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 the error of unable to retrieve url from file (#13603)

Hasta688d07e9c385
diff --git a/api/core/file/file_manager.py b/api/core/file/file_manager.py
index f8c050c2ac2..770014aa72c 100644
--- a/api/core/file/file_manager.py
+++ b/api/core/file/file_manager.py
@@ -32,7 +32,7 @@ def get_attr(*, file: File, attr: FileAttribute):
case FileAttribute.TRANSFER_METHOD:
return file.transfer_method.value
case FileAttribute.URL:
- return file.remote_url
+ return _to_url(file)
case FileAttribute.EXTENSION:
return file.extension
case FileAttribute.RELATED_ID: