Upload Problem! - 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 Problem! (/showthread.php?tid=54929) |
Upload Problem! - El Forum - 10-02-2012 [eluser]Adnan1984[/eluser] hello, Here is my program code in controller: Code: public function create_user(){ I created form, in which i'm using image upload function. But when i post the form without filling the required field, Validation error comes but image uploaded in the folder. that shouldn't be happened. Any Idea? Thanks Upload Problem! - El Forum - 10-02-2012 [eluser]Hank the Punk[/eluser] Are you loading http://yoursite.com/controller/upload1 anywhere ?? As upload1() is public that url should work. If this is not intended, set the function to private by adding an underscore to the name. Code: public function _upload1() { |