Skip to main content
The file upload component is based on Filepond and provides a modern file upload experience.

Basic Usage

Available Methods

method
Sets the storage disk.
method
Sets the upload directory.
method
Sets file visibility (public/private).
method
Allows multiple file uploads.
method
Restricts file types.
method
Sets maximum file size in kilobytes.
method
Sets minimum file size in kilobytes.
method
Restricts uploads to images only.
method
Enables the image editor.
method
Sets available aspect ratios in image editor.
method
Forces image cropping to specific aspect ratio.
method
Resizes images to target width.
method
Resizes images to target height.
method
Enables avatar mode (circular display).
method
Preserves original filenames.
method
Customizes filename generation.
method
Stores original filenames in separate field.
method
Allows opening files in new tab.
method
Allows downloading files.
method
Allows previewing files.
method
Allows reordering multiple files.
method
Appends new files instead of replacing.
method
Limits number of files.
method
Sets minimum number of files.
method
Controls parallel upload limit.
method
Sets remove button position.
method
Sets upload button position.
method
Sets progress indicator position.

Common Patterns

Simple File Upload

Image Upload with Validation

Avatar Upload

Multiple Documents

Database Casting

For multiple file uploads, add an array cast: