CodeIgniter Forums
File Upload, view results? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: File Upload, view results? (/showthread.php?tid=7193)



File Upload, view results? - El Forum - 03-29-2008

[eluser]JasonS[/eluser]
I have set the image name as a random hash. The file is uploading fine.

How do I view what the image name is?

I know it is something to do with this.

$this->upload->data()

But I can't work out how to extract a single result as opposed to printing the entire array.


File Upload, view results? - El Forum - 03-29-2008

[eluser]aypnos[/eluser]
Take a look here
and at the bottom of this page

Example:
Code:
$data = $this->upload->data()
$file_name = $data['file_name'];