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: Correctly map source_url to preview_url in file fields (#25957)

Hunter50050527ebfc
diff --git a/api/fields/file_fields.py b/api/fields/file_fields.py
index dd359e2f5fa..a6e2d7038b8 100644
--- a/api/fields/file_fields.py
+++ b/api/fields/file_fields.py
@@ -32,7 +32,7 @@ file_fields = {
"mime_type": fields.String,
"created_by": fields.String,
"created_at": TimestampField,
- "preview_url": fields.String,
+ "preview_url": fields.String(attribute="source_url"),
}