fix(office_server): bump axum body limit to 100MB #21
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_office!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_upload_body_limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
hero_office_server's axum router used the framework default body limit of 2 MB, so browser uploads via
upload_documentJSON-RPC were silently rejected with413 Failed to buffer the request body: length limit exceededfor any file >~1.5 MB raw. Bumps the limit to 100 MB (allowing ~75 MB raw files after base64 inflation).Related Issue
Closes #20
Changes
crates/hero_office_server/src/main.rs—DefaultBodyLimit::max(100 * 1024 * 1024)layer on the routerTest Results
cargo fmt --check✅cargo check --workspace✅cargo clippy --workspace -- -D warnings✅cargo test --workspace✅Manual verification
{"success":true,"size":5242880}