NimUI
ComponentsForms

FileUpload

Local file selection and dropzone for attachments

FileUpload manages local file selection only. Upload transport, progress, retries, and storage belong in the application layer.

Import

import { FileUpload } from '@nim-ui/components';

Basic Usage

Attachments
Code
<FileUpload
  accept="application/pdf,image/*"
  multiple
  maxFiles={3}
  maxSize={5 * 1024 * 1024}
  onChange={setFiles}
  onReject={setRejectedFiles}
/>

On this page