POST variables and image upload problem in codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: POST variables and image upload problem in codeigniter (/showthread.php?tid=32925) |
POST variables and image upload problem in codeigniter - El Forum - 08-09-2010 [eluser]dhaulagiri[/eluser] In my understanding, if we have same name and number of database fields in post form, and if we supply Code: $this->db->insert('db_table', $_POST); And it's happening as well. In those post arrays, one field is file upload, I have corrected the 'enctype' and tried the regular file upload code as below but doesn't work Code: if(($_FILES['image']['tmp_name'])!=''){ I have spent some days still can't find out. Can anyone pls help me with example workable code ? I would be thankful. |