fix(upload): raise body-size limit to 512 MiB + surface upload errors #177

Merged
sharang merged 1 commits from fix/upload-body-limit into main 2026-07-16 18:03:41 +00:00
Owner

Artifact uploads larger than axum's 2 MiB default request-body limit were
rejected, and the wizard swallowed the error, so the target was created with
no artifact → every scan showed "blocked, no artifact provided". Found live
during the demo: a 9.9 MB CODESYS .projectarchive failed to attach (a 1.7 KB
.st worked).

  • agent: DefaultBodyLimit::max(512 MiB) on the API router (multipart route).
  • dashboard: DefaultBodyLimit::max(512 MiB) on the axum app serving the upload
    server function (browser→dashboard hop).
  • wizard: surface upload failures in the error banner instead of ignoring them.

Covers PLC .projectarchive, firmware images, and mobile packages. Agent clippy
clean; dashboard builds under both features.

🤖 Generated with Claude Code

Artifact uploads larger than axum's **2 MiB** default request-body limit were rejected, and the wizard **swallowed the error**, so the target was created with **no artifact** → every scan showed "blocked, no artifact provided". Found live during the demo: a **9.9 MB** CODESYS `.projectarchive` failed to attach (a 1.7 KB `.st` worked). - **agent**: `DefaultBodyLimit::max(512 MiB)` on the API router (multipart route). - **dashboard**: `DefaultBodyLimit::max(512 MiB)` on the axum app serving the upload server function (browser→dashboard hop). - **wizard**: surface upload failures in the error banner instead of ignoring them. Covers PLC `.projectarchive`, firmware images, and mobile packages. Agent clippy clean; dashboard builds under both features. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-07-16 17:57:30 +00:00
fix(upload): raise body-size limit to 512 MiB + surface upload errors
CI / Check (pull_request) Successful in 5m40s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
ee0efe5e22
Artifact uploads (PLC .projectarchive, firmware images, mobile packages) larger
than axum's 2 MiB default request-body limit were rejected, and the wizard
swallowed the error (`let _ = upload_target_artifact`), so the target was created
with no artifact — every scan then showed "blocked, no artifact provided".

- agent: DefaultBodyLimit::max(512 MiB) on the API router (multipart upload route).
- dashboard: DefaultBodyLimit::max(512 MiB) on the axum app serving the upload
  server function (the browser→dashboard hop).
- wizard: surface upload failures in the error banner instead of ignoring them.

Found live: a 9.9 MB CODESYS .projectarchive failed to attach (a 1.7 KB .st worked).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sharang merged commit 98357cae10 into main 2026-07-16 18:03:41 +00:00
sharang deleted branch fix/upload-body-limit 2026-07-16 18:03:41 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#177