Compare commits
No commits in common. "2fc8a1adcef55ed8e19c10bc5acbb16d70972bbe" and "3978dae6928bd9c979c29369f2ecca96f3b6bc11" have entirely different histories.
2fc8a1adce
...
3978dae692
@ -2003,7 +2003,7 @@ async def upload_supplier_invoice(file: UploadFile = File(...)):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Validate file size while saving
|
# Validate file size while saving
|
||||||
max_size = settings.EMAIL_MAX_UPLOAD_SIZE_MB * 1024 * 1024
|
max_size = settings.MAX_FILE_SIZE_MB * 1024 * 1024
|
||||||
total_size = 0
|
total_size = 0
|
||||||
|
|
||||||
with open(temp_path, "wb") as buffer:
|
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)
|
temp_path.unlink(missing_ok=True)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=413,
|
status_code=413,
|
||||||
detail=f"Fil for stor (max {settings.EMAIL_MAX_UPLOAD_SIZE_MB}MB)"
|
detail=f"Fil for stor (max {settings.MAX_FILE_SIZE_MB}MB)"
|
||||||
)
|
)
|
||||||
buffer.write(chunk)
|
buffer.write(chunk)
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,8 @@ services:
|
|||||||
GITHUB_REPO: ${GITHUB_REPO:-ct/bmc_hub}
|
GITHUB_REPO: ${GITHUB_REPO:-ct/bmc_hub}
|
||||||
container_name: bmc-hub-api-${STACK_NAME:-prod}
|
container_name: bmc-hub-api-${STACK_NAME:-prod}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- "${API_PORT:-8000}:8000"
|
- "${API_PORT:-8000}:8000"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user