Overview
TheFileUploaderRegular component provides a complete file upload solution with a modal-based interface. It includes an upload button that opens a modal dialog with drag-and-drop functionality, multiple upload sources, and a dedicated upload list view.
When to use
UseFileUploaderRegular when you need:
- A traditional file upload button with modal workflows
- Clear separation between file selection and upload management
- Multiple upload sources (device, camera, URL, external services)
- Built-in modal dialogs for different upload activities
- A polished, production-ready file upload experience
Basic usage
Features
Upload button
The component renders an “Upload files” button that triggers the modal workflow. The button is visible by default but can be hidden using theheadless attribute.
Modal dialogs
FileUploaderRegular includes several modal dialogs for different activities:- Start From - Main file selection interface with drag-and-drop and source list
- Upload List - Shows uploaded files with progress and management options
- Camera - Capture photos or videos from device camera
- URL - Import files from external URLs
- External Sources - Connect to cloud storage services (Dropbox, Google Drive)
- Cloud Image Editor - Edit images before or after upload
Upload sources
The default configuration includes:- Local device files
- Drag and drop
- Camera capture
- URL import
- External services (Dropbox, Google Drive)
Attributes
ctx-name
The context name that links the uploader with its configuration. Must match the
ctx-name in uc-config and uc-upload-ctx-provider.headless
Hides the default upload button. Use this when you want to trigger the upload flow programmatically or with a custom button.
Form integration
Integrate FileUploaderRegular with HTML forms using theuc-form-input component:
Configuration options
Configure the uploader behavior through theuc-config component:
- Multiple files
- Image only
- Custom sources
Styling
Customize the appearance using CSS custom properties or by applying the light/dark theme:The component automatically adapts to the system color scheme unless you explicitly set a theme class.
Events
Listen to upload events to integrate with your application logic:Comparison with other solutions
FileUploaderInline
Inline interface without modals, embedded directly in your page
FileUploaderMinimal
Compact uploader with minimal UI, perfect for tight spaces
Related components
- Config - Configure uploader behavior
- UploadCtxProvider - Manage upload context
- CloudImageEditor - Standalone image editor