From d9860d7beb20a6635a97a99e487c8cdcad66503d Mon Sep 17 00:00:00 2001 From: DJP Date: Sun, 17 May 2026 20:39:45 -0400 Subject: [PATCH] backend: raise multipart upload cap from 20 MB to 100 MB A full-year Zoho time-log export can run 30-60 MB and was getting rejected with {"detail":"Payload too large"} on the Department tab upload. 20 MB was an under-cautious default; 100 MB matches what Apache will pass through without a LimitRequestBody override. Co-Authored-By: Claude Opus 4.7 (1M context) --- backend/app/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/config.py b/backend/app/config.py index 2bee64f..f30daf5 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -59,8 +59,9 @@ class Settings(BaseSettings): # Session cookie SESSION_MAX_AGE: int = 60 * 60 * 8 # 8h - # Multipart upload limit (bytes) — Zoho exports rarely exceed 20 MB. - MAX_UPLOAD_BYTES: int = 20 * 1024 * 1024 + # Multipart upload limit (bytes). Default 100 MB — full-year Zoho time-log + # exports can run 30-60 MB, and we want headroom. Override via env var. + MAX_UPLOAD_BYTES: int = 100 * 1024 * 1024 @property def cookie_path(self) -> str: