What the person is doing
Users are likely to have one or more files visible in a desktop file manager and want to move them into the product quickly.
Application · lesson 23 of 34 · Input And Data Entry
Underlying principle: An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
Provide a clear drop zone as an enhancement on top of a real file picker, expose drag states, prevent destructive browser defaults, validate dropped files, allow cancellation and removal, and keep upload progress separate from final submission.
An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
Users are likely to have one or more files visible in a desktop file manager and want to move them into the product quickly.
Provide a clear drop zone as an enhancement on top of a real file picker, expose drag states, prevent destructive browser defaults, validate dropped files, allow cancellation and removal, and keep upload progress separate from final submission.
Idle drop zone with visible label, requirements, and choose-file fallback.
Do users actually have files available to drag from a desktop file manager?
Dragenter and dragover make the target visibly active only when the incoming data includes files.
Users are likely to have one or more files visible in a desktop file manager and want to move them into the product quickly.
Open the working example, try its controls, and compare the behavior against the decision guidance.
Users are likely to have one or more files visible in a desktop file manager and want to move them into the product quickly.
Provide a clear drop zone as an enhancement on top of a real file picker, expose drag states, prevent destructive browser defaults, validate dropped files, allow cancellation and removal, and keep upload progress separate from final submission.
Idle drop zone with visible label, requirements, and choose-file fallback.
The drop zone accepts unsupported files and fails only after a long upload attempt.
Keep a visible label and instructions that name both drag-and-drop and choose-file paths.
IBM - checked
Carbon supports drag-and-drop uploader variant guidance, drop-zone copy, active border changes, click fallback, keyboard activation, focus return, selected files, removal, and invalid states.
Mozilla - checked
MDN supports file drop-zone implementation with file input fallback, dragover cancellation, DataTransferItem files, drop processing, and clear behavior.
Government Digital Service - checked
GOV.UK supports improved file upload behavior with both Choose file and drag-and-drop options, plus labels, hints, errors, and multiple selection.
World Wide Web Consortium - checked
W3C supports drag-and-drop cancellation and recovery expectations for pointer-based drag actions.
Source trail checked: