Skip to content

fix: show a clear error when an upload is too large - #569

Merged
TrueBrain merged 1 commit into
mainfrom
fix/upload-too-large-error
Nov 21, 2026
Merged

TrueBrain merged 1 commit into
mainfrom
fix/upload-too-large-error

Conversation

@TrueBrain

Copy link
Copy Markdown
Owner

Fixes #52.

  • Uploads over the limit now show the normal TrueWiki error page (status 413) saying the file is bigger than 4 MiB and the changes were not saved.
  • The upload form now shows the limit.
  • MAX_UPLOAD_SIZE moved to config.py so routes and the File namespace can use it.
  • Added an e2e test that uploads a 5 MiB file; full e2e suite passes (96 passed).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.51%. Comparing base (2cf2ec5) to head (f9c9d1d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
+ Coverage   83.48%   83.51%   +0.02%     
==========================================
  Files          52       52              
  Lines        2798     2802       +4     
  Branches      423      423              
==========================================
+ Hits         2336     2340       +4     
  Misses        351      351              
  Partials      111      111              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TrueBrain
TrueBrain merged commit 8f86180 into main Nov 21, 2026
15 checks passed
@TrueBrain
TrueBrain deleted the fix/upload-too-large-error branch November 21, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exceeded file upload size limit gives unhelpful error

1 participant