F
Filament10mo ago
tesse05

BUG: ->multiple() in SpatieMediaLibraryFileUpload not working

having this simple field in a form builder gives that error.
SpatieMediaLibraryFileUpload::make('media')
** ->multiple()**
->disk('media')
->maxFiles(6)
->label('Fitxers adjunts')
->helperText('Carrega fins a 6 fitxers en format PNG, JPG o PDF.')
->acceptedFileTypes([
'image/png', 'image/jpeg', 'application/pdf',
])
->enableDownload()
->enableReordering()
->collection('attachments')
->columnSpanFull(),
SpatieMediaLibraryFileUpload::make('media')
** ->multiple()**
->disk('media')
->maxFiles(6)
->label('Fitxers adjunts')
->helperText('Carrega fins a 6 fitxers en format PNG, JPG o PDF.')
->acceptedFileTypes([
'image/png', 'image/jpeg', 'application/pdf',
])
->enableDownload()
->enableReordering()
->collection('attachments')
->columnSpanFull(),
If I remove the ->multiple() attribute it works fine but can't upload more than 1 doc😅
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server