Preview video in forms using SpatieMediaLibrary

Hi everyone, i need help to preview the video in view or editing forms using SpatieMediaLibrary It works when i use FileUpload but now i'm using SpatieMediaLibraryFileUpload Can anyone help me! Code:
SpatieMediaLibraryFileUpload::make('video')
->collection('videos')
->acceptedFileTypes(['video/mp4'])
->disk('media')
->directory('trips')
->fetchFileInformation(false)
->columnSpanFull()
SpatieMediaLibraryFileUpload::make('video')
->collection('videos')
->acceptedFileTypes(['video/mp4'])
->disk('media')
->directory('trips')
->fetchFileInformation(false)
->columnSpanFull()
No description
3 Replies
Ali Teleb
Ali TelebOP11mo ago
Any little help? :squint:
LeandroFerreira
LeandroFerreira10mo ago
run composer update try the latest filament version ahh sorry, you are using the spatie media. Not sure about this
Ali Teleb
Ali TelebOP10mo ago
it works using Forms\Components\FileUpload but not working using Forms\Components\SpatieMediaLibraryFileUpload
Want results from more Discord servers?
Add your server