From 10098198019db58c73b0830c751ff56ea86eb747 Mon Sep 17 00:00:00 2001 From: Billy Bao Date: Mon, 24 Nov 2025 12:21:33 +0800 Subject: [PATCH] Fix: coroutine object has no attribute get (#11472) ### What problem does this PR solve? Fix: coroutine object has no attribute get ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/file_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/apps/file_app.py b/api/apps/file_app.py index 8b5383a66..e262b3d7b 100644 --- a/api/apps/file_app.py +++ b/api/apps/file_app.py @@ -125,8 +125,8 @@ async def upload(): @validate_request("name") async def create(): req = await request.json - pf_id = await request.json.get("parent_id") - input_file_type = await request.json.get("type") + pf_id = req.get("parent_id") + input_file_type = req.get("type") if not pf_id: root_folder = FileService.get_root_folder(current_user.id) pf_id = root_folder["id"]