# KptFileUpload (kpt-file-upload) File upload (drag-and-drop + picker) on Signal Forms. The value is a File[]. Import: `import { KptFileUpload } from '@konce-pt/angular';` ## Inputs / model - `value`: model (or `formField`) - `accept`: string (e.g. 'image/*') - `multiple`: boolean - `disabled`/`invalid`/`touched`: boolean; `touch`: output ## Example files = signal([]); ## Behavior The zone responds both to a click and to files dragged onto it. With `multiple=false` it keeps only the first file. The file list shows the name, the size and a remove button. ## Keyboard and states - The zone is `role="button"` with a single Tab stop: `Enter` and `Space` open the file picker, the same as a click. The native `` is hidden, so without this a keyboard user could not pick a file at all. - `disabled` takes the zone out of the Tab order (`tabindex="-1"`, `aria-disabled`) and blocks both picking and dropping. - The error state (`aria-invalid`, a `--kpt-color-danger` border via `[data-invalid]`) shows once the field is invalid and touched. - List items get an icon by type: `photo` for `image/*`, `paperclip` for anything else. ## Tokens The zone `--kpt-color-border-strong` (dashed), hover / dragover `--kpt-color-primary`, error `--kpt-color-danger`, focus ring `--kpt-color-focus-ring`. ## Read-only and required `readonly` shows the list without the remove buttons and does not open the picker nor accept a drop. The zone takes `id` and `ariaLabel` and is linked to `kpt-form-field` (label and description); `button` accepts neither `aria-invalid` nor `aria-required`, so the error is the linked message. The hint is plain text: `fileUpload.hint` with `{action}` and `fileUpload.hintAction` (bold) - dictionaries no longer carry HTML. The remove button names the file.