Welcome Guest, Not a member yet? Register   Sign In
$this->upload->$data, trouble accessing array items


I am having trouble with what is probably a simple problem. I am trying to access the [file_name] and [file_path] items in the array $this->upload->data() that is produced when uploading files.

Can anyone point out how to do it? I have tried using a foreach loop and also using the array helper element() function. But I just can't seem to get it.


This is how I did it, but I'm no expert. Also I'm uploading one file at a time.

$aFile = $this->upload->data();
$sPath = $aFile['full_path'];

thanks steelaz - perfect, just what I needed. I knew it would be simple, just couldn't get it.

Nice answer stellaz! Thanks dude!

Theme © iAndrew 2016 - Forum software by © MyBB