Basically , I am trying to integrate import data for menus as its not yet added in tastyigniter theme , for that I have created a file in widgets->form folder for input type ‘file’ and the “Choose file” button is displaying but when I select file to upload and click Submit button , and trying to get file data in model function for further process its giving blank array and the “Input::File(‘file’);” is also not supported
I also inclueded the enctype in form in views as below
<?= form_open(current_url(),
[
'id' => 'create-form',
'role' => 'form',
'method' => 'POST',
'enctype'=>"multipart/form-data"
]
); ?>
How can I achieve this ?