PolyHunter

UploadField

Reusable file picker and drop zone. Files in this showcase stay local. Label and description are optional; copy overrides customize each action, hint, progress, validation and selection message while omitted values retain localized defaults.

Playground

Live preview

Variants and states

Localized defaults

Custom text overrides

Mission files — multiple selection and drag-and-drop

Demo only: files stay local. No upload, mission or account change occurs. Server validation remains required.

Compact avatar or guild logo

Accepts the shared PNG/JPEG/WebP policy without converting the selected file. Cropping stays in the avatar/logo flow.

Disabled, busy and failed states

Processing…

Selected files

These examples start with synthetic file metadata so the selected state is visible immediately. Choose files to replace the demo selection; files stay local.

One file selected

Multiple files selected

Compact — one file selected

Compact — multiple files selected

Code

// Defaults
<UploadField onFilesSelected={handleFiles} />

// Custom text, remaining strings use defaults
<UploadField
  compact
  label="Profile avatar"
  description="Choose a supported image."
  copy={{ choose: "Choose avatar image", hint: "Or drop an image here." }}
  onFilesSelected={handleFiles}
/>

Used in

Includes use through shared UI components.

AppBack Office