• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieving ONLY the file name from $this->upload->data()


So baiscally I just want to retrieve the file name from the array of data it stores.

I was thinking I could maybe do something like.
echo $this->upload->data('file_name');
It's probably really easy to do but I have had no sleep in like forever!

Thank you for your help.

omg I'm retarded.

I need sleep, I just realised what I was trying to do and it is simple.

$data = $this->upload->data();

$filename = $data['file_name'];

echo $filename;

I'm so stupid. good night!

Hehehe.. Congrat for that. Have a nice sleep.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.