What is a file upload?
A file upload component lets the user choose one or more files from their device and send them to a server. It usually has three jobs:
- Picking: a button that opens the system file picker, and on the web often a drop zone for drag and drop.
- Checking: is the type allowed, is it under the size limit, are there too many files?
- Uploading: sending each file, showing its progress, and handling cancel, failure and retry.
You’ll find it in expense apps (receipts), banking and insurance (statements, claims), job portals (CV), email and chat (attachments), cloud storage, and admin tools (CSV imports).
Anatomy
Receipts
PDF or DOCX · up to 10 MB each · max 5 files
Drag files here, or
Browse files- Hotel_invoice_Grand_Hotel_Europa_Sept.pdf
1.2 MB · Uploading… 64%
Taxi receipt.docx
86 KB · Uploaded
Flight_LH1234.pdf
Connection lost at 40%
- 1
Label and rules
Says what to upload and the limits: allowed types, max size, max number of files. Shown before the user picks anything.
- 2
Drop zone
An area where files can be dropped (web, desktop). A shortcut, never the only way in.
- 3
Browse button
Opens the system file picker. A real, labelled button that works with touch, mouse, keyboard and screen readers.
- 4
File row
Icon, name (long names truncate in the middle, so the extension stays visible) and size.
- 5
Per-file progress
Each file shows its own progress and state: uploading, processing, uploaded, failed.
- 6
Cancel / Remove
Cancel stops a running upload; Remove takes a file out. Each button names its file for screen readers.
- 7
Error + Retry
A failed file stays in the list with a reason and a Retry button. It never silently disappears.
- 8
Summary
"2 of 3 uploaded · 1 failed". Tells the user whether it is safe to press Submit.
The states of one file
Every file in the list goes through its own life cycle, and the whole component is only “done” when all files are. A good list shows each file’s state separately:
| State | What the user sees | What to check |
|---|---|---|
| Rejected | “Not added” with the reason | The reason is specific: type, size, count, empty file |
| Uploading | Progress bar, percentage, Cancel | The bar moves; Cancel really stops the request |
| Processing | Bar full, “Processing…” | The app doesn’t look frozen at 100% |
| Uploaded | Check mark, Remove | The server has the right file, complete and openable |
| Failed | Error text, Retry, Remove | The file stays in the list; Retry works |
| Canceled | “Canceled”, Retry or gone | Matches the spec; nothing half-uploaded is kept |
Check this part
What are the three jobs of a file upload component?
One of five files fails to upload. What should a good list show?