# FileErrorCode (@salmonui/inputs/file-upload)

> The FileErrorCode type of @salmonui/inputs/file-upload: Why a file is invalid (type, tooSmall, tooLarge, tooMany) or failed (upload, remove).

Canonical: https://salmonui.dev/docs/reference/inputs/file-upload/FileErrorCode

```ts
import type { FileErrorCode } from '@salmonui/inputs/file-upload';
```

Entry index: https://salmonui.dev/docs/reference/inputs/file-upload (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/file-upload.md).

## Reference

Kind: type

```ts
type FileErrorCode = 'type' | 'tooSmall' | 'tooLarge' | 'tooMany' | 'upload' | 'remove';
```

Why a file is `invalid` (`type`, `tooSmall`, `tooLarge`, `tooMany`) or failed (`upload`, `remove`).
