From 80c7c43bd6bb8f0b6201ee225cb4dcecf6980cc6 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 3 Jul 2024 18:33:01 -0700 Subject: [PATCH] Implement upload_file endpoint (#550) --- skyvern/forge/sdk/routes/agent_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py index 021895b6..427bddda 100644 --- a/skyvern/forge/sdk/routes/agent_protocol.py +++ b/skyvern/forge/sdk/routes/agent_protocol.py @@ -763,7 +763,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} bytes)", + detail=f"File size exceeds the maximum allowed size ({app.SETTINGS_MANAGER.MAX_UPLOAD_FILE_SIZE/1024/1024} MB)", ) return file