[SOLVED] Image Uploading with registration info (Unable to detect selected image) - 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: [SOLVED] Image Uploading with registration info (Unable to detect selected image) (/showthread.php?tid=47790) |
[SOLVED] Image Uploading with registration info (Unable to detect selected image) - El Forum - 12-22-2011 [eluser]tuckee[/eluser] Hello everyone, I'm really new in uploading image so really appreciate if anyone could help me with this. I have been trying whole day but is still not working. I have a registration form, that has image uploading as well. I have put the image uploading in the same form along with registration information. When click submit, it successful register, manage to capture ads_name, but it says no image is selected. I believe there is a mistake i made in the view file. maybe the button? I'm not sure if this is the cause of not detecting any image selected. Code: if ( ! $this->upload->do_upload()) If i were to changed to Code: ( ! $this->upload->register()) Fatal error: Call to undefined method CI_Upload::register() in C:\xampp\htdocs\SS\system\application\controllers\advertisement.php on line 61 ps: I have deleted alot of my code to make this simple. my controller Code: function register(){ my view Code: <html> |