Overview
TheFileUploaderMinimal component provides a streamlined file upload experience with a minimal UI footprint. It combines an inline drop area with modal dialogs for additional sources, offering the best of both worlds - compact design with full functionality.
When to use
UseFileUploaderMinimal when you need:
- A compact upload interface that takes minimal space
- Simple drag-and-drop with a “Choose file” button
- Full upload sources available through modals when needed
- Image-centric workflows with grid or list view
- Quick file selection without overwhelming the UI
Basic usage
Features
Minimal drop area
The component starts with a compact drop area showing a “Choose file” button:Automatic view transitions
The uploader intelligently switches between views:- Drop area - Initial state with “Choose file” button
- Upload list - Automatically shown when files are added
- Modal sources - Opens modals for camera, URL, or external sources
Instant upload mode
By default,FileUploaderMinimal has confirm-upload set to false, meaning files upload immediately upon selection. The upload list is shown as soon as files are added.
File view modes
Supports two view modes through configuration:- Grid view (default) - Display files as thumbnails in a grid
- List view - Display files in a vertical list
Attributes
ctx-name
The context name that links the uploader with its configuration. Must match the
ctx-name in uc-config.Configuration options
Common configurations for FileUploaderMinimal:- Image gallery
- Single file
- With validation
View mode behavior
Grid view
Optimal for image uploads with thumbnail previews:- Thumbnail previews for images
- Responsive grid layout
- Edit and remove buttons on hover
- Automatically switches to single column when
multiple="false"
List view
Better for files with detailed information:- File names and sizes
- Upload progress bars
- Action buttons aligned
Modal integration
Clicking the drop area or choosing alternative sources opens modal dialogs:- Start From Modal - Full source list (camera, URL, external services)
- Camera Modal - Photo and video capture interface
- URL Modal - Import files from URLs
- External Modal - Connect to Dropbox, Google Drive, etc.
- Image Editor Modal - Edit images before upload
Styling
Customize the minimal uploader appearance:Theme classes
Mode attribute
The component automatically sets amode attribute based on the configured view mode:
Upload workflow
Events
Handle upload events in your application:Comparison with other solutions
FileUploaderRegular
Full-featured with upload button and comprehensive modal workflows
FileUploaderInline
Inline interface without modals, shows all activities in-place
Use cases
- Image galleries - Compact interface for uploading multiple images
- Avatar uploads - Single image selection with minimal UI
- Form attachments - Add files without disrupting form layout
- Product images - E-commerce product photo uploads
- Document uploads - Simple file selection for document management
Related components
- Config - Configure uploader behavior
- CloudImageEditor - Standalone image editor