From b2ff44cbef4bca9bb2c471612e45703a46e16647 Mon Sep 17 00:00:00 2001 From: anor Date: Wed, 6 May 2026 17:28:05 +1000 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=2050=20?= =?UTF-8?q?=E2=86=92=20100=20=D0=9C=D0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Сметные xlsm/zip-архивы у пользователей часто крупные; nginx vhost уже разрешает до 500 МБ — упирались только в проверку MAX_UPLOAD_SIZE в FastAPI. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 32896c6..df1fccd 100644 --- a/main.py +++ b/main.py @@ -98,7 +98,7 @@ else: app = FastAPI(title="smeta-web") app.mount("/static", StaticFiles(directory="static"), name="static") -MAX_UPLOAD_SIZE = 50 * 1024 * 1024 # 50 MB +MAX_UPLOAD_SIZE = 100 * 1024 * 1024 # 100 MB MAX_MESSAGE_LEN = 10_000 # Audit: path → action name mapping