Skip to content

docs: describe media capture in Upload - #6705

Open
tomivirkki wants to merge 5 commits into
mainfrom
docs/upload-capture
Open

tomivirkki wants to merge 5 commits into
mainfrom
docs/upload-capture

Conversation

@tomivirkki

@tomivirkki tomivirkki commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Flow got Upload.setCapture() and UploadButton.setCapture() with the UploadCapture enum in 25.4 (Hackathon 25.3: Upload has no Java API for the file input's capture attribute flow-components#10086). The Upload pages didn't cover the capture mode at all.
  • The whole section is marked as new in 25.4. The web component has had a capture property for longer, but it was never documented, so this is where the feature is introduced.
  • The example is code only, because desktop browsers ignore the capture mode and a live example would look the same as the basic one.

tomivirkki and others added 2 commits November 19, 2026 11:37
Add a section and an example on opening the camera or the microphone
of a mobile device instead of the file browser, for both Upload and
the modular upload button.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The capture mode has no effect in desktop browsers, so a live example
looks the same as the basic one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes — left 1 comment.

Finding
⚠️ The page says accepted file formats select the capture device, but only MIME types do

Comment thread articles/components/upload/index.adoc Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

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

Changed pages

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

Built from 77510ba

tomivirkki and others added 3 commits November 19, 2026 12:12
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.

2 participants