cliffthecoder / filament-uploadthing
UploadThing integration for FilamentPHP
Package info
github.com/CliffordMarley/filament-uploadthing
Language:Blade
pkg:composer/cliffthecoder/filament-uploadthing
v1.0.1
2026-01-06 10:32 UTC
Requires
- php: ^8.1
- filament/filament: ^4.0
- illuminate/contracts: ^11.0
This package is auto-updated.
Last update: 2026-04-06 10:55:39 UTC
README
A FilamentPHP 4 plugin that integrates UploadThing for seamless file uploads.
Installation
- Install via Composer:
composer require cliffthecoder/filament-uploadthing
- Publish the config:
php artisan vendor:publish --tag="filament-uploadthing-config"
- Add your UploadThing API key to
.env:
UPLOADTHING_API_KEY=your_api_key_here
Usage
In your Filament resource form:
use CliffTheCoder\FilamentUploadThing\Forms\Components\UploadThingFileUpload; public static function form(Form $form): Form { return $form ->schema([ UploadThingFileUpload::make('attachment') ->label('Upload File') ->acceptedFileTypes(['image/*', 'application/pdf']) ->maxFileSize(5 * 1024 * 1024) // 5MB ->multiple() ->maxFiles(5), ]); }
Features
- Drag & drop file upload
- Multiple file support
- File type restrictions
- File size validation
- Upload progress indicator
- Direct integration with UploadThing API
- Seamless Filament UI integration
Configuration
The plugin can be configured in config/filament-uploadthing.php.
Building Assets
If you modify the JavaScript:
npm install npm run build
License
MIT