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) <noreply@anthropic.com>
This commit is contained in:
DJP 2026-05-17 20:39:45 -04:00
parent c485757dc3
commit d9860d7beb

View file

@ -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: