Basic Usage
Available Methods
Sets the storage disk.
Sets the upload directory.
Sets file visibility (public/private).
Allows multiple file uploads.
Restricts file types.
Sets maximum file size in kilobytes.
Sets minimum file size in kilobytes.
Restricts uploads to images only.
Enables the image editor.
Sets available aspect ratios in image editor.
Forces image cropping to specific aspect ratio.
Resizes images to target width.
Resizes images to target height.
Enables avatar mode (circular display).
Preserves original filenames.
Customizes filename generation.
Stores original filenames in separate field.
Allows opening files in new tab.
Allows downloading files.
Allows previewing files.
Allows reordering multiple files.
Appends new files instead of replacing.
Limits number of files.
Sets minimum number of files.
Controls parallel upload limit.
Sets remove button position.
Sets upload button position.
Sets progress indicator position.
Common Patterns
Simple File Upload
Image Upload with Validation
Avatar Upload
Multiple Documents
Image Gallery
Database Casting
For multiple file uploads, add anarray cast: