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: files/support-type JSON serialization error (#26842)

heyszt56ee8f7d649f
diff --git a/api/controllers/console/files.py b/api/controllers/console/files.py
index 34f186e2f0b..2b63f6febca 100644
--- a/api/controllers/console/files.py
+++ b/api/controllers/console/files.py
@@ -108,4 +108,4 @@ class FileSupportTypeApi(Resource):
@login_required
@account_initialization_required
def get(self):
- return {"allowed_extensions": DOCUMENT_EXTENSIONS}
+ return {"allowed_extensions": list(DOCUMENT_EXTENSIONS)}