spec 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.

Open source

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.

Evidence Role

This source is treated as spec evidence. Use it to validate the decision rules above, not as a visual style reference.

Publisher: Mozilla. Last checked: .