shu/autoupgrade pre commit (#1553)

This commit is contained in:
Shuchang Zheng
2025-01-14 14:06:43 -08:00
committed by GitHub
parent 4240247bf6
commit 34c3434885
5 changed files with 15 additions and 15 deletions

View File

@@ -1080,7 +1080,7 @@ async def validate_file_size(file: UploadFile) -> UploadFile:
if size > app.SETTINGS_MANAGER.MAX_UPLOAD_FILE_SIZE:
raise HTTPException(
status_code=413,
detail=f"File size exceeds the maximum allowed size ({app.SETTINGS_MANAGER.MAX_UPLOAD_FILE_SIZE/1024/1024} MB)",
detail=f"File size exceeds the maximum allowed size ({app.SETTINGS_MANAGER.MAX_UPLOAD_FILE_SIZE / 1024 / 1024} MB)",
)
return file