spec 2 linked patterns checked
MDN: input type=file
Documents native file input value behavior, selected FileList access, accept type specifiers, multiple file selection, capture hints, and the need to validate selected files beyond client-side accept filtering.
Read with a purpose
What this source can teach
Use this source to check a technical or accessibility requirement against its exact wording and scope.
- Start with the original. Open the source and find the guidance or example relevant to your task.
- Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
- Check the setting. Compare the source's platform, people, and constraints with your own decision.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Camera capture | Choose camera capture when the product must create new camera media and users need live preview, framing, capture, review, and retake behavior. | The camera stream starts only after a deliberate user action and contextual permission rationale. | Supports upload fallback, accept filtering, selected files, and capture hints. |
| File upload | Choose file upload when the original file itself is needed, not just information from the file. | Activating the choose-file button opens the platform file picker and returns focus to the invoking control or selected file summary afterward. | MDN supports native file input behavior, FileList access, accept type specifiers, multiple selection, capture hints, and validation caveats. |
Comparisons supported by this source
- Camera capture vs file upload vs permission request vs sensitive-data reveal vs full-screen takeover vs drag-and-drop upload
Supports selected file fallback, accept filtering, and capture hints in file inputs.
- File upload vs text input vs single-question page vs multi-step form
MDN supports native file input behavior, accept filters, multiple selection, FileList access, and validation caveats.
Evidence Role
This source is treated as spec evidence. Its value comes from the specific claims and setting described above.
Publisher: Mozilla. Last checked: .