diff --git a/claude_bridge.py b/claude_bridge.py index f1329d4..e329f1f 100644 --- a/claude_bridge.py +++ b/claude_bridge.py @@ -114,6 +114,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", # smeta programs: ГРАНД-Смета, Smeta.RU + ".zip", ".rar", ".7z", } diff --git a/claude_bridge_direct.py b/claude_bridge_direct.py index db984ac..b543420 100644 --- a/claude_bridge_direct.py +++ b/claude_bridge_direct.py @@ -41,6 +41,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", } diff --git a/claude_bridge_glm.py b/claude_bridge_glm.py index f2c055d..a05f2dc 100644 --- a/claude_bridge_glm.py +++ b/claude_bridge_glm.py @@ -113,6 +113,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", } diff --git a/main.py b/main.py index 8618593..1f0cd42 100644 --- a/main.py +++ b/main.py @@ -198,7 +198,7 @@ async def upload(request: Request, file: UploadFile): if not is_allowed_file(safe_name): raise HTTPException( 400, - f"File type not allowed. Allowed: xlsx, docx, pdf, csv, txt, xml, json, yaml", + f"File type not allowed. Allowed: xlsx, xls, docx, pdf, csv, txt, xml, json, yaml, gge, esw, zip", ) chunks = [] diff --git a/sandbox/claude_bridge_sandbox.py b/sandbox/claude_bridge_sandbox.py index 57fb663..6c1019c 100644 --- a/sandbox/claude_bridge_sandbox.py +++ b/sandbox/claude_bridge_sandbox.py @@ -44,6 +44,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", }