file-input

Installation
SKILL.md

File Input

Upload and handle files

What it solves

A File Input is a form component that allows users to select one or more files from their device's file system and upload them to a server. It ranges from the native <input type="file"> control to enhanced drop zones with drag-and-drop, file previews, upload progress indicators, and validation feedback. File inputs appear in document management, profile photo upload, e-commerce product imagery, form attachment flows, and media-rich applications.

When to use

  • Profile and avatar upload – Users select a photo for their account.
  • Document submission – Forms that require attached PDFs, contracts, or ID documents.
  • Media uploads – Images or videos for social media, e-commerce listings, or galleries.
  • Bulk import – CSV or JSON files for data import workflows.
  • Email attachments – Web mail applications.

When to avoid

Installs
2
GitHub Stars
212
First Seen
Apr 2, 2026
file-input — thedaviddias/ux-patterns-for-developers