Choose your integration
Storage API
Store uploads, local files, streams and bytes using a typed write policy.
Configuration
Choose disks, limits, visibility, worker settings and cleanup policies.
Image conversions
Generate thumbnails and WebP/AVIF variants, synchronously or in a worker.
Spatie integration
Use collections, native conversions, responsive images and model relationships.
Temporary uploads
Handle staging, record acceptance, recovery and abandoned files.
Extensions and events
Connect your antivirus scanner, processors and access policy.
Capture and retention
Configure transcription, signature evidence and retention services.
Browser integrations
Build a custom capture interface with the public browser helpers.
Understand the upload lifecycle
is separate from transfer completion. Queued conversion files can become available after the record has been saved.Your first stored file
The following example stores a PDF on the Laravellocal disk. $path is a readable local path supplied by your application. Import the classes shown in each example into the class where you use them.
MediaReceipt. Save the attachment reference in your own model or use a FLEX upload field to manage form persistence for you.
Files and images in forms
What is included
- Inspected MIME types, byte limits, SHA-256 integrity checks and private/public visibility.
- Local disks and configured cloud disks, including S3, through Laravel’s filesystem.
- Named native image conversions, separate conversion disks, optimized previews and optional background jobs.
- Optional Spatie collections, conversions, responsive images and custom properties.
- Configurable antivirus integrations, processing, access policies and Laravel events.
- Temporary staging, explicit recovery and scheduled cleanup.
- Configurable capture transcription, signature evidence and retention services.
Media OS does not include an antivirus engine or a cloud-storage account. Configure those services in your application when you enable them. Disk storage does not require Spatie. Native raster conversions require PHP GD; the available output codecs depend on your GD installation.
Originals and converted files
If your storage policy permits only a reduced master image and a thumbnail, normalize the source before permanent storage, then create the thumbnail from that normalized master. There is no built-in conversion option that deletes the stored original while keeping its derivative records. Learn about originals and previews.Configuration and next steps
The configuration namespace isfilament-flex-fields.media_capture. Per-operation MediaWrite and MediaPolicy objects let you override storage and validation for a particular upload.