feat: разрешены файлы сметных программ (.gge, .esw, .ges, .smr, .smt) и архивы

ГРАНД-Смета (.gge, .esw), Smeta.RU (.smr, .smt), плюс .zip/.rar/.7z
Обновлены все 4 файла с ALLOWED_EXTENSIONS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-26 17:13:32 +10:00
co-authored by Claude Opus 4.6
parent f0481b9f41
commit 519d9dd81a
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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 = []