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
LeandroFerreira
LeandroFerreira3mo ago
It is difficult to help you without any code or a clear context of the issue..
eng.m.sabah
eng.m.sabahOP3mo ago
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
LeandroFerreira
LeandroFerreira3mo ago
what is the error when you are uploading the files?
eng.m.sabah
eng.m.sabahOP3mo ago
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
LeandroFerreira
LeandroFerreira3mo ago
Are you using the panel builder or only the form builder?
eng.m.sabah
eng.m.sabahOP3mo ago
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
LeandroFerreira
LeandroFerreira3mo ago
but no happen or upload files Are you submitting the form?
eng.m.sabah
eng.m.sabahOP3mo ago
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
eng.m.sabah
eng.m.sabahOP3mo ago
yes this worked before with me its a live but i test it again, not working now Edited are you there @Leandro Ferreira
LeandroFerreira
LeandroFerreira3mo ago
weird.. medialibrary supports multiple(). Maybe you could provide a mini repo on github to reproduce this issue...
Want results from more Discord servers?
Add your server