PolyHunter

FileAttachment

Click the file thumbnail or icon to open its dialog. Images show a thumbnail with a view cue on hover; downloads live in the dialog. An optional trailing CancelIcon removes the selection through the caller.

Playground

Live preview

No event yet

Examples

Preview failure retains download

Selected file

Preview — image dialog

Preview — PDF dialog

Preview — unavailable format

Preview — disabled

Upload — remove action only

Read-only — download action only

Read-only — download disabled

Long title and subtitle — two-line ellipsis

186px minimum text column

Consumer event callbacks

No event yet

Selected file with remove action

Custom icon

Examples

Read-only downloads

Synthetic files only. Filenames are plain text; the trailing download icon downloads the original file.

Unknown or missing MIME type

The row shows a paperclip, plain filename, available metadata and a download icon.

Unavailable files and long names

Code

<FileAttachment
  variant="upload"
  name="Mission reference.png"
  description="Supporting evidence"
  onRemove={removeFile}
/>

Code

<FileAttachment name={file.name} size={file.size} mediaType={file.type} onRemove={removeFile} />

Used in

Includes use through shared UI components.

AppBack Office