Skip to content

feat: handle HTTP 413 error in upload [1 day]#11115

Merged
sissbruecker merged 2 commits intomainfrom
bugfix/handle-413
Feb 17, 2026
Merged

feat: handle HTTP 413 error in upload [1 day]#11115
sissbruecker merged 2 commits intomainfrom
bugfix/handle-413

Conversation

@mstahv
Copy link
Copy Markdown
Member

@mstahv mstahv commented Feb 11, 2026

Add support for HTTP 413 (Payload Too Large) status code in the upload component.

  • Add error handling for 413 status in UploadManager

  • Add i18n configuration and error mapping in UploadMixin

  • Update TypeScript definitions for new error type

  • Add unit tests for 413 error handling

  • Integrate 413 testing into dev/upload.html demo

  • Make nodrop upload respect same configuration

Fixes #11111

Type of change

  • Feature

Add support for HTTP 413 (Payload Too Large) status code in the upload component.

- Add error handling for 413 status in UploadManager

- Add i18n configuration and error mapping in UploadMixin

- Update TypeScript definitions for new error type

- Add unit tests for 413 error handling

- Integrate 413 testing into dev/upload.html demo

- Make nodrop upload respect same configuration

Closes #11111
@mstahv
Copy link
Copy Markdown
Member Author

mstahv commented Feb 11, 2026

Vibed with Mistral Vibe, but verified fix manually. NOT tested with a real server or a reverse proxy giving the error code, but looks I'm rather confident it works. Might be good to improve the platform/java component setups to have e.g. ngingx based test setup with a reverse proxy, but probably out of the scope of this change.

@mstahv
Copy link
Copy Markdown
Member Author

mstahv commented Feb 11, 2026

Does the i18n message need to be extended to the Java side 🤔

@yuriy-fix yuriy-fix changed the title fix: handle HTTP 413 error in upload feat: handle HTTP 413 error in upload Feb 17, 2026
@yuriy-fix yuriy-fix changed the title feat: handle HTTP 413 error in upload feat: handle HTTP 413 error in upload [1 day] Feb 17, 2026
@sonarqubecloud
Copy link
Copy Markdown

@sissbruecker sissbruecker merged commit bc7010e into main Feb 17, 2026
10 checks passed
@sissbruecker sissbruecker deleted the bugfix/handle-413 branch February 17, 2026 13:02
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.1.0-alpha9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload component doesn't properly handle http status code 413 (too large)

4 participants