I have gotten the do_upload working. But I now realize that the file is being uploaded to the server not the users pc. In my case the data needs to be kept secure during the trip. How can I encrypt the users data?
Perhaps I am doing this all wrong? I need to get data from an xls file into a mysql table. I need to check that the data is in the correct format during this trip. Is there a more direct way of doing this rather than using phpOffice/phpSpreadSheet? The code I am doing isĀ
PHP Code:
$data = array('upload_data' => $this->upload->data());
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader("Xlsx");
$iRc=$reader->setReadDataOnly(true);
$file = $data["upload_data"]["full_path"];
$spreadsheet = $reader->load($file);
proof that an old dog can learn new tricks