Revert "hopefully fixes windows CI error"

This reverts commit 3295726347.
This commit is contained in:
harisreedhar
2026-01-19 14:46:51 +05:30
committed by henryruhs
parent 586f889e13
commit 05e02f53d2
+1 -2
View File
@@ -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)