Lumeo

File Upload

A drag-and-drop file upload area with per-file progress tracking, validation, cancel, and retry.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<FileUpload />

When to Use

  • File attachments in forms such as resumes, invoices, or supporting documents
  • Image uploads for profile pictures, product photos, or galleries
  • Document submissions with drag-and-drop zones for a better user experience
  • Bulk file uploads with per-file progress indicators, cancel, and retry

Switch between Dropzone, Button, and Avatar to see the upload surface change.

API Reference

FileUpload

FileUpload — Public Methods

Method Returns Description
Reset()TaskClears internal file selection and upload state. Cancels any in-flight uploads. Remounts the native file input so the same file can be re-picked without a DOM workaround. Does not fire any events.
StartUploadAsync()TaskStarts uploads for all pending items when AutoUpload=false.

FileUploadItem

Represents the state of each file in the upload queue. Passed to OnUpload, OnFileUploaded, OnFileFailed, etc.

Property Type Description
IdstringUnique identifier (Guid hex) for this upload item.
FileIBrowserFileThe underlying browser file reference.
NamestringFile name.
SizelongFile size in bytes.
StatusFileUploadStatusCurrent status: Pending, Uploading, Succeeded, Failed, Cancelled.
ProgressPercentintUpload progress 0–100, updated via IProgress.
ErrorMessagestring?Error message if Status is Failed.
Urlstring?Server-returned URL or id after a successful upload.
ChunkSizelongChunk-size hint from the ChunkSize parameter (0 if not set).
  • Input — For standard text and data entry fields
  • Button — For triggering file selection via a button-style upload
  • Progress — For showing upload progress as a standalone bar