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
Is this
Excel::import()
from maatswebsite/laravel-excel
?yes..
I had some issues with that, too. I think they require the filepath in some special way.
can you give me example of that
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
thanks, I'll try that