Skip to content

docs: document UploadValidator for rejecting uploads#5828

Merged
mcollovati merged 4 commits into
mainfrom
docs/upload-validator
Jul 21, 2026
Merged

docs: document UploadValidator for rejecting uploads#5828
mcollovati merged 4 commits into
mainfrom
docs/upload-validator

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Documents the new UploadValidator API from flow#24925, which lets the
built-in upload handlers refuse an upload while it's being received.

Previously only a fully custom UploadHandler could call
UploadEvent.reject(...); the pre-made handlers (InMemoryUploadHandler,
FileUploadHandler, TemporaryFileUploadHandler) had no supported way to
reject an upload mid-transfer.

Related

Please review the wording yourself before marking this PR ready.

Comment thread articles/components/upload/file-handling.adoc Outdated
Co-authored-by: Knoobie <Knoobie@gmx.de>
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5828.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from bd596c0

@mcollovati
mcollovati marked this pull request as ready for review July 21, 2026 10:35
@mcollovati
mcollovati requested a review from caalador July 21, 2026 10:35
Comment thread articles/components/upload/file-handling.adoc
@mcollovati
mcollovati merged commit e4a949e into main Jul 21, 2026
8 checks passed
@mcollovati
mcollovati deleted the docs/upload-validator branch July 21, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UploadHandler: built-in handlers ignore event.isRejected() when subclassed to reject uploads

3 participants