From 05e02f53d2d3a320dfe50a3bc00d16b782f903c7 Mon Sep 17 00:00:00 2001 From: harisreedhar Date: Mon, 19 Jan 2026 14:46:51 +0530 Subject: [PATCH] Revert "hopefully fixes windows CI error" This reverts commit 3295726347d48a3f42deeb10b590043c9e95cd40. --- facefusion/apis/endpoints/assets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/facefusion/apis/endpoints/assets.py b/facefusion/apis/endpoints/assets.py index 75d62619..0e35ebf4 100644 --- a/facefusion/apis/endpoints/assets.py +++ b/facefusion/apis/endpoints/assets.py @@ -54,10 +54,9 @@ async def save_asset_files(upload_files : List[UploadFile]) -> List[str]: while upload_chunk := await upload_file.read(1024): temp_file.write(upload_chunk) - temp_file.flush() media_type = detect_media_type(temp_file.name) temp_path = state_manager.get_temp_path() - asset_path = os.path.join(temp_path, os.path.basename(temp_file.name) + upload_file_extension) + asset_path = os.path.join(temp_path, temp_file.name + '.' + upload_file_extension) if media_type == 'audio' and ffmpeg.sanitize_audio(temp_file.name, asset_path): asset_paths.append(asset_path)