![]() |
What I am doing wrong? - 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: What I am doing wrong? (/showthread.php?tid=5923) |
What I am doing wrong? - El Forum - 02-08-2008 [eluser]Rubiz'[/eluser] Well, I tried the upload exemple in the site I'm working now it worked perfect, I though it would be the first time I could use Upload class, but now, I'm using an upload function inside a controller and its returning me the error message "invalid path" ... I just used it as the user guide exemple and it doenst work anymore!!! What I'm doing wrong???? Code: if ( $_FILES['img']['name'] != '' ) the function Code: function do_upload($path, $field_name, $maxWidth = '1280', $maxHeight = '1024') What I am doing wrong? - El Forum - 02-09-2008 [eluser]rsmithinfo[/eluser] When you say it doesn't work what do you mean? Does it report any error messages? Anything in the log? Does your print_r return anything? What I am doing wrong? - El Forum - 02-09-2008 [eluser]tonanbarbarian[/eluser] does the upload folder exist in particular check that Code: getcwd() . '/upload/' i would echo that value out to be sure you mahe find the getcwd is returning a different value than u expected What I am doing wrong? - El Forum - 02-11-2008 [eluser]Rubiz'[/eluser] rsmithinfo & tonanbarbarian, thanx for answering!! Its very very weird cause I got echo from path, it's right, and the class always returns invalid path... First time I tried the user guide example as it is the same path simply worked. I really dont know what it could be... |