File Upload (Dropzone)
A dashed area where you drop files or click to choose them from your device.
Also known as: Dropzone
<input type="file"> + drop eventsWhen to use it
For uploading drawings, photos or documents.
Common mistake
Don’t hide the allowed types and size.
Accessibility
Keep a real button inside; dragging is impossible for many users.
Name in code
| HTML/CSS | <input type="file"> + drop events |
|---|---|
| React | react-dropzone |
| Jetpack Compose | rememberLauncherForActivityResult(GetContent) |
| SwiftUI | .fileImporter / PhotosPicker |
Ready prompt for your coding agent
Add a File Upload (Dropzone) to this screen.
What it is: A dashed area where you drop files or click to choose them from your device.
Implement with: <input type="file"> + drop events (HTML/CSS).
Accessibility: Keep a real button inside; dragging is impossible for many users.
When to use it: For uploading drawings, photos or documents.
Avoid: Don’t hide the allowed types and size.
Reuse the project's existing design tokens, spacing and component conventions.
Or compose a whole page from this element and others →
Prompts are in English for the most precise results with coding agents.