spykapps/filament-uppy-upload
UploadHandler or custom logic).Storage facade is configured; custom disk drivers may need adjustments.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Chunk handling | High | Test with target storage backend (e.g., S3). Validate UploadHandler or custom chunk logic. |
| Frontend conflicts | Medium | Audit existing JS bundles for Uppy/Alpine conflicts. Use Filament’s asset pipeline. |
| Remote source auth | Medium | Ensure OAuth/credentials for Google Drive/Dropbox are securely managed (e.g., via Laravel Passport). |
| Filament version drift | High | Pin Filament version in composer.json to avoid breaking changes. |
| Performance | Medium | Monitor chunk uploads under load; consider CDN for static Uppy assets. |
Prerequisites:
config/filesystems.php.Installation:
composer require spykapps/filament-uppy-upload
npm install @uppy/core @uppy/dashboard # If not using Filament’s bundled assets
npm run dev # Rebuild assets
Configuration:
php artisan vendor:publish --tag="filament-uppy-upload-config"
config/filament-uppy-upload.php for:
Usage:
use SpyKApps\FilamentUppyUpload\Forms\Components\UppyUpload;
UppyUpload::make('document')
->disk('s3')
->maxSize(100) // MB
->acceptedFileTypes(['image/*', 'application/pdf'])
->remoteSources(['google-drive', 'dropbox']);
Testing:
storage/logs/laravel.log).sync:handle or database queue).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Chunk upload timeout | Partial/incomplete files | Increase chunk timeout in config. |
| Remote source auth failure | Broken OAuth flow | Implement fallback to direct uploads. |
| Storage backend outage | Upload failures | Queue retries with exponential backoff. |
| JS errors (Uppy) | Broken UI | Feature detection; graceful fallback. |
| Filament cache issues | Stale form fields | Clear |
How can I help you explore Laravel packages today?