NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsFile Upload

File Upload

File upload components with drag and drop.

PreviousRating
NextCard
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub

File Upload

Drag and drop file upload region with automatic validation checking for size, count and support extensions.

When to use

default layoutInline form blocks requesting a fast document upload or receipt scanner
dropzone variantDedicated media or content drop areas where rich instructions, drag alerts, and multi-file listings are expected
button variantCompact dialog forms or profile picture triggers where a full drag zone is visually overwhelming
accept type constraintEnforcing strict file extensions (e.g. only JPEG/PNG images or PDF documents) before browser selection opens

Interactive Playground

Live CanvasInteractive

Click to upload or drag & drop

Supports: image/*,application/pdf (Max: 10MB)

Controls(4)
variant
select

Visual container styling format option

multiple
boolean
Toggle state:

Allows uploading multiple items simultaneously

accept
text

Comma-separated string of accepted formats

maxSize
number

Maximum file size constraint limit in bytes (e.g. 10MB)

Generated JSX
Source
import { FileUpload } from "nexoreui"

<FileUpload />

Default Drag & Drop Zone

Click to upload or drag & drop

All files supported (Max: 10MB)

component.tsx
1

Large Dropzone Variant

Click to upload or drag & drop

All files supported (Max: 5MB)

component.tsx
1

Compact Action Bar Trigger

Select File

Any file (Max: 10MB)

component.tsx
1

Multiple File Selection

Click to upload or drag & drop

All files supported (Max: 10MB)

component.tsx
1

Images & PDF Formats Only

Click to upload or drag & drop

Supports: image/*,application/pdf (Max: 10MB)

component.tsx
1

API Reference (Props)

PropTypeDefaultDescription
onUpload*(files: File[]) => void—Callback fired when files are validated and uploaded.
acceptstring—Mime-type query string (e.g. "image/*,.pdf").
maxSizenumber10485760 (10MB)Maximum file size threshold in bytes.
multiplebooleanfalseAllows uploading more than one item in sequence.
variant"default" | "dropzone" | "button""default"Display variant for file collection component.
classNamestring—Additional custom class names.

Accessibility (a11y)

  • Keyboard Focus: Target clickable zones are focusable and can be activated using Enter or Space.
  • Native Input: Employs a hidden native <input type="file"> element to guarantee full compatibility with mobile devices, voice command utilities, and standard screen readers.