![]() |
Upload data array is empty - 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: Upload data array is empty (/showthread.php?tid=24253) |
Upload data array is empty - El Forum - 11-04-2009 [eluser]NateL[/eluser] Not quite sure what I'm doing wrong here - but I've followed the user guide and when I do a var_dump() on my upload data, it's all empty. I'd appreciate any help ![]() View Code: <?php controller: portfolio/add_process Code: $config['upload_path'] = '/images/portfolio/'; dumps this: Code: array(13) { ["file_name"]=> string(0) "" ["file_type"]=> string(0) "" ["file_path"]=> string(18) "/images/portfolio/" ["full_path"]=> string(18) "/images/portfolio/" ["raw_name"]=> string(0) "" ["orig_name"]=> string(0) "" ["file_ext"]=> string(0) "" ["file_size"]=> string(0) "" ["is_image"]=> bool(false) ["image_width"]=> string(0) "" ["image_height"]=> string(0) "" ["image_type"]=> string(0) "" ["image_size_str"]=> string(0) "" } Upload data array is empty - El Forum - 11-04-2009 [eluser]pistolPete[/eluser] Is the file uploaded though? Is there an error message? Code: echo $this->upload->display_errors(); Upload data array is empty - El Forum - 11-04-2009 [eluser]NateL[/eluser] [quote author="pistolPete" date="1257377946"]Is the file uploaded though? Is there an error message? Code: echo $this->upload->display_errors(); HA! The upload path does not appear to be valid. Adjusted it to an absolute path and it works :-) Thanks for the help |