From 56ee8f7d649f330c04abc18998e909a67f48e185 Mon Sep 17 00:00:00 2001 From: heyszt <270985384@qq.com> Date: Tue, 14 Oct 2025 09:20:19 +0800 Subject: [PATCH] fix: files/support-type JSON serialization error (#26842) --- api/controllers/console/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/files.py b/api/controllers/console/files.py index 34f186e2f0..2b63f6febc 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)}