F
Filament5mo 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 Koch5mo ago
Is this Excel::import() from maatswebsite/laravel-excel?
dyo
dyoOP5mo ago
yes..
Dennis Koch
Dennis Koch5mo ago
I had some issues with that, too. I think they require the filepath in some special way.
dyo
dyoOP5mo ago
can you give me example of that
Dennis Koch
Dennis Koch5mo 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
dyoOP5mo ago
thanks, I'll try that
Want results from more Discord servers?
Add your server