SpatieMediaLibraryFileUpload::make('x')->label(__("x"))->multiple()
SpatieMediaLibraryFileUpload::make('x')->label(__("x"))->multiple()
->collection('x')->acceptedFileTypes(['application/pdf']),
has issue while use ->multiple()
@Povilas K
11 Replies
It is difficult to help you without any code or a clear context of the issue..
using filament/spatie-laravel-media-library-plugin and its was working with uplload one file or multiple but now upload only one file while using multiple() not working
@Leandro Ferreira
what is the error when you are uploading the files?
no error
click on the input and select files and enter until this point its good but no happen or upload files
i can recored video for you content code and output
Are you using the panel builder or only the form builder?
public static function form(Form $form): Form
{
return $form
->schema([
Section::make('Content And Media')->description('Description and Images and Files')
->schema([
SpatieMediaLibraryFileUpload::make('archipartner_catalogues')->label(__("Catalogues"))->multiple()
->collection('archipartner_catalogues')->acceptedFileTypes(['application/pdf']),
only form
but no happen or upload files
Are you submitting the form?
poth no happen and not uploaded
also i tried submitting the form but the same output no files uploaded
but if i remove ->multiple() working well with singel file
hum.. did you do this?
https://spatie.be/docs/laravel-medialibrary/v11/basic-usage/preparing-your-model
Preparing your model | laravel-medialibrary
laravel-medialibrary
yes
this worked before with me its a live
but i test it again, not working now
Edited
are you there
@Leandro Ferreira
weird.. medialibrary supports
multiple()
. Maybe you could provide a mini repo on github to reproduce this issue...