Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB