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

#1
[eluser]SteveBluck[/eluser]
Hi,

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.
Code:
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.

#2
[eluser]SteveBluck[/eluser]
omg I'm retarded.

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

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

$filename = $data['file_name'];

echo $filename;

I'm so stupid. good night!

#3
[eluser]Hakkam[/eluser]
Hehehe.. Congrat for that. Have a nice sleep.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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