[eluser]ebuoe[/eluser]
to get all the data from the recent upload you use
Code:
$file_data = $this->upload->data();
where $file_data is a variable that gets all the properties of the uploaded file as an array
so to get the file name from the array u do :
Code:
$file_name = $file_data['file_name'];
now to insert into the database using your array you do :
Code:
$fileinfo = array(
'uniqueid' => $uniqueid,
'filename' => $file_name
);
$this->entry_model->file_info($fileinfo);
this should solve the problem
and just in case you need any other data from the file you just uploaded e.g. size,extension,image_height etc you just access the $file_data variable the same way
you got the the value for file name
i.e.
Code:
variable = $file_data['data_you_need'];
e.g to get the file extension you can do
$file_ext = $file_data['file_ext']; // result :: .jpg or .png or .gif dependn on ur xtension
$fileSize = $file_data['file_size']; // result :: the size of the file in kilo bytes
//you can check for other parameters in the "file uploading class section" in the documentation
i hope this will be helpful