From f5af5cc58d77ecc4a9e19182983a3cf44180d7d6 Mon Sep 17 00:00:00 2001 From: lixiangcheng1 Date: Mon, 29 Dec 2025 15:26:51 +0800 Subject: [PATCH] [fxi]Upload MP3. MP4. MOV. MAV file report interface does not exist, compatible with upper and lower case --- api/app/controllers/file_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/controllers/file_controller.py b/api/app/controllers/file_controller.py index 5bc2fd79..a020adbb 100644 --- a/api/app/controllers/file_controller.py +++ b/api/app/controllers/file_controller.py @@ -172,7 +172,7 @@ async def upload_file( # Construct a save path:/files/{kb_id}/{parent_id}/{file.id}{file_extension} save_dir = os.path.join(settings.FILE_PATH, str(kb_id), str(parent_id)) Path(save_dir).mkdir(parents=True, exist_ok=True) # Ensure that the directory exists - save_path = os.path.join(save_dir, f"{db_file.id}{file_extension}") + save_path = os.path.join(save_dir, f"{db_file.id}{db_file.file_ext}") # Save file with open(save_path, "wb") as f: