I have a submit file code that uploads an Excel file to my server and then uses it through the function.
When doing so:
if ($this->upload->do_upload()){
$data = array('upload_data' => $this->upload->data());
$filename = $data['raw_name'];
$fullfilename = $data['orig_name'];
$inputFileName = FCPATH."files/automation/1/$filename.xlsx";
$inputFileNameNew = FCPATH."files/automation/1/$filename-new.xlsx";
It gives me this output:
Error loading file ".xlsx": Could not open /var/www/html/tools/files/automation/1/.xlsx for reading! File does not exist.
Where I suspect it's because it hasn't found the file because it wasn't uploaded yet. Could be?