Size limits

You can optionally set a minimum and/or maximum file size, both specified in KB. Files outside the range are rejected as soon as they're dropped or selected — they still appear in attachedFiles (with status: "rejected" and a rejectionReason) so the user sees them flagged in the list, but they are never uploaded. The instructions shown to the user are automatically converted to MB for readability.

<DropUpload
  minFileSize={512} // 0.5 MB
  maxFileSize={2048} // 2 MB
/>

Leave either prop unset (or 0, the default) to skip that bound — e.g. only set maxFileSize for an upper limit with no minimum.

Size limits are enforced client-side, which helps the user pick the right files but can be bypassed. Always re-validate file size on your server too.