CodeIgniter Forums
jQuery multiple image uploader insert in to database - 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: jQuery multiple image uploader insert in to database (/showthread.php?tid=34971)



jQuery multiple image uploader insert in to database - El Forum - 10-15-2010

[eluser]Wonder Woman[/eluser]
I'm currently using jQuery's Multiple image uploader for my form in CI. This works superbly however I would like to insert the file names, etc in to the database - anybody any ideas how I can do this?

My controller

Code:
$config['upload_path']   = './uploads/';
$config['allowed_types'] = 'gif|jpg|pdf|doc|bmp|png';
$config['max_size']      = '2024';
$config['max_width']     = '1024';
$config['max_height']    = '768';
        
$this->load->library('upload', $config);
$this->load->library('Multi_upload');

$files = $this->multi_upload-go_upload();
$data = array('upload_data' => $files);

My View

Code:
<input type="file" name="images[]" size="20" class="multi" id="images" maxlength="5" />

Any help that would great, thanks.