Agentic Design System
v3.5.0

Components · Forms · Upload

Back to Upload types

Upload

Owner: Design System Team · Version: v3.5.0

Use for adding one or more files to a form - either a large drag-and-drop dropzone or a compact trigger button, paired with a file list that reports each file's name, size and upload status - one Upload component, controlled by properties, not separate widgets glued together.

Properties

Label and helper text are properties of the same component, not separate fields - change them below to check this control's style and states in the Live Preview.

Required

Live Preview

Both types compared side by side, each in all 10 states, using the chosen label and helper text. Dragging looks the same for Button as Hover, since there is no dropzone area to drag a file onto. Real drag-and-drop, file validation and upload progress wiring are a larger feature and are not built in this static preview.

When to use

Any form flow that needs the user to add one or more files, with clear feedback on what was added and whether it uploaded successfully.

Document attachment Profile photo upload Bulk CSV import Design asset submission Resume/CV upload

Validation

Upload has three distinct failure modes, and each needs its own timing and its own message - lumping them into one generic "Upload failed" tells the user nothing about what to change or whether their other files are still safe.

Component Guide

Overview

Upload adds one or more files to a form - either a large drag-and-drop dropzone or a compact trigger button - paired with a file list that reports each file's name, size, and upload status, so the user always knows what was added and whether it succeeded.

When to Use

  • Attaching documents to a record - a support ticket, an application form.
  • Uploading a profile photo or design asset - a single-file, often image-specific upload.
  • Bulk file import - a CSV import, a batch of resumes/CVs.

When Not to Use

  • Collecting a URL to an already-hosted file rather than the file itself - use Input or Add-on instead.
  • A field that doesn't actually involve a file - obviously use a different form field type - Upload exists specifically for file transfer.
  • A single, tiny, purely decorative image with no need for status feedback - a simpler custom control may be lighter weight than the full Upload component.

Best Practices

  • Always show per-file progress and a clear success/error state, not just a single overall spinner.
  • State accepted file types and size limits up front, before the user picks a file, not only after a rejected upload.
  • Let the user remove a file from the list before final submission, in case they attached the wrong one.

Do and Don't

Do

Drop files or browse

PDF or PNG, up to 10 MB each

contract.pdf2.4 MB

Accepted formats and the size ceiling are stated before the user picks a file, and each upload reports its own outcome.

Don't

Drop files or browse

contract.tiffUpload failed

Withholding the rules until after the upload wastes the user's time and bandwidth, and "Upload failed" still does not tell them what to change.

Accessibility

  • The dropzone is also operable via a real file-picker trigger, since drag-and-drop alone isn't reachable by keyboard.
  • Upload progress and completion/error status are announced via an aria-live region, not just shown visually.
  • Each file row's remove control is independently labeled with that file's name ("Remove report.pdf"), not a generic "Remove" repeated for every row.

Related Components

Input, Progress, Result.