From aa7b0894af05d4fc9ee5d6111e56a7260a5b52a1 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 1 Mar 2026 20:15:40 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20MAX=5FFILE=5FSIZE=5FMB=20=E2=86=92=20EMA?= =?UTF-8?q?IL=5FMAX=5FUPLOAD=5FSIZE=5FMB=20in=20supplier=20invoice=20uploa?= =?UTF-8?q?d=20v2.2.15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- app/billing/backend/supplier_invoices.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 42a4ee5..5bd8c54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.14 +2.2.15 diff --git a/app/billing/backend/supplier_invoices.py b/app/billing/backend/supplier_invoices.py index 575980d..ce3067d 100644 --- a/app/billing/backend/supplier_invoices.py +++ b/app/billing/backend/supplier_invoices.py @@ -2003,7 +2003,7 @@ async def upload_supplier_invoice(file: UploadFile = File(...)): try: # Validate file size while saving - max_size = settings.MAX_FILE_SIZE_MB * 1024 * 1024 + max_size = settings.EMAIL_MAX_UPLOAD_SIZE_MB * 1024 * 1024 total_size = 0 with open(temp_path, "wb") as buffer: @@ -2013,7 +2013,7 @@ async def upload_supplier_invoice(file: UploadFile = File(...)): temp_path.unlink(missing_ok=True) raise HTTPException( status_code=413, - detail=f"Fil for stor (max {settings.MAX_FILE_SIZE_MB}MB)" + detail=f"Fil for stor (max {settings.EMAIL_MAX_UPLOAD_SIZE_MB}MB)" ) buffer.write(chunk)