Overview
TheFileUploaderInline component provides an inline file upload interface that embeds directly into your page layout. Unlike FileUploaderRegular, it displays all upload activities inline without modal dialogs, making it ideal for seamless integration into your page flow.
When to use
UseFileUploaderInline when you need:
- An embedded upload interface that doesn’t use modal dialogs
- Upload functionality that feels like a natural part of your page
- Direct visibility of upload sources and progress
- More control over the layout and positioning
- A streamlined user experience without modal interruptions
Basic usage
Note that
FileUploaderInline doesn’t require uc-upload-ctx-provider - the component manages its own context.Features
Inline interface
All upload activities are displayed inline within the component bounds:- Drop area with file selection
- Source list for alternative upload methods
- Upload progress and file list
- Camera, URL, and external source interfaces
- Image editor integration
Automatic view switching
The component automatically switches between views based on the upload state:- Start From - Initial state showing drop area and upload sources
- Upload List - Automatically shown when files are added
- Source Activities - Displayed when selecting alternative upload sources
Cancel button
An optional cancel button appears when:- Navigating through source activities (can go back)
- Files are present in the upload list (can return to list)
Attributes
ctx-name
The context name that links the uploader with its configuration. Must match the
ctx-name in uc-config.Configuration options
Configure the inline uploader through theuc-config component:
- With image editing
- Multiple files
- Custom sources
Initial activity
Control which view is shown initially using CSS custom properties:start-from(default) - Show upload sourcesupload-list- Show file list if files are present
Styling
The inline uploader can be styled to fit your page layout:Theme classes
Layout considerations
Since the component is inline, consider these layout aspects:Container width
Container width
The component will fill its container width. Set a max-width if needed:
Height transitions
Height transitions
The component height changes based on the active view. Ensure your layout can accommodate these changes smoothly.
Responsive design
Responsive design
The inline uploader is responsive by default. Test on mobile devices to ensure proper behavior.
Events
Listen to upload events to integrate with your application:Comparison with other solutions
FileUploaderRegular
Modal-based interface with separate dialog windows
FileUploaderMinimal
Compact uploader with minimal UI footprint
Use cases
- Profile pages - Inline avatar upload without disrupting the page flow
- Content creation - Embed file uploads in forms or editors
- Dashboard widgets - Integrate uploads within complex layouts
- Mobile-first apps - Seamless experience without modal overlays
Related components
- Config - Configure uploader behavior
- CloudImageEditor - Standalone image editor