spec checked
MDN: File drag and drop
Documents implementing a drop zone backed by a file input, accepting files from the operating system, cancelling default browser file handling, using dragover and drop events, processing DataTransferItem files, wiring the same behavior to the input change event, and clearing previews.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Drag-and-drop upload | Choose drag-and-drop upload when dropping files from a desktop file manager is a common, useful shortcut. | Dragenter and dragover make the target visibly active only when the incoming data includes files. | MDN supports file drop-zone implementation with file input fallback, dragover cancellation, DataTransferItem files, drop processing, and clear behavior. |
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: .