![]() |
Please explain UPLOAD strange error - 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: Please explain UPLOAD strange error (/showthread.php?tid=12143) |
Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]Yash[/eluser] May be I'm missing something but it looks some kind of bug to me. Working Code Code: <?php Not working Code: <?php Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]Yash[/eluser] Giving Error ...uploaded path is not correct Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]xwero[/eluser] Does the directory have sufficient rights to upload a file to? Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]Yash[/eluser] Testing on windows server. First controller uploads the files while second controller gave error. Rest(views) is same. Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]xwero[/eluser] Oh yes it's the common newbie mistake of loading a library more than once. You have to use initialize in your not working class. Code: $this->load->library('upload', $config); Code: $this->upload->initialize($config); Please explain UPLOAD strange error - El Forum - 10-08-2008 [eluser]Yash[/eluser] wow thats superb for me.. Thank you |