I created a form in CodeIgniter framework that successfully uploads an image using the tutorial in the CodeIgniter manual (http://codeigniter.com/user_guide/libraries/file_uploading.html), but when I try to grab the file name, the following code is simply returning ‘resize/user/w’. Any thoughts are appreciated!
$type = 'user';
$imageData = $this->upload->data();
foreach ($imageData as $info) {
$url = 'resize/' . $type . '/' . $info['file_name'];
}
echo $url;
Try using: