![]() |
How uploading many files? - 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: How uploading many files? (/showthread.php?tid=4031) |
How uploading many files? - El Forum - 11-03-2007 [eluser]iniweb[/eluser] Example i'am using File Class: Code: $this->load->library('upload', $this->config->config); Userfile - Image Videofile - Media But return only userfile: Quote:Array ( [file_name] => drupal_ru.png [file_type] => image/png [file_path] => /home/yaba/html/uploads/images/ [full_path] => /home/yaba/html/uploads/images/drupal_ru.png [raw_name] => drupal_ru [orig_name] => [file_ext] => .png [file_size] => 130.66 [is_image] => 1 [image_width] => [image_height] => [image_type] => [image_size_str] => ) How uploading many files? - El Forum - 11-03-2007 [eluser]xwero[/eluser] You can only validate/upload one file at the time using the upload class so you would have to do something like this Code: $fields = array('userfile','videofile'); It's a bit messy but i think you get the picture. |