F
Filament3mo ago
dyo

Problem in modal form

Action::make('import') ->form([ FileUpload::make('upload'), ]) ->action(function (array $data) { Excel::import(new DistribusiFirstSheet, $data['upload']); }), I want to create a modal form with FileUpload in it, but when i submit the uploaded form i got error: Illuminate \ Contracts \ Filesystem \ FileNotFoundException What did I miss?
6 Replies
Dennis Koch
Dennis Koch3mo ago
Is this Excel::import() from maatswebsite/laravel-excel?
dyo
dyo3mo ago
yes..
Dennis Koch
Dennis Koch3mo ago
I had some issues with that, too. I think they require the filepath in some special way.
dyo
dyo3mo ago
can you give me example of that
Dennis Koch
Dennis Koch3mo ago
I don't remember which project I added that feature so I can't find it. Check where the error is thrown and what filepath it uses
dyo
dyo3mo ago
thanks, I'll try that
Want results from more Discord servers?
Add your server