codeigniter , store uploaded image data to database

327 views
Skip to first unread message

ryan rynaldo

unread,
May 10, 2014, 3:03:32 PM5/10/14
to jquery-f...@googlegroups.com
please help,
i'm a newbie in web development,
i using codeigniter + this tutorial : https://github.com/blueimp/jQuery-File-Upload/wiki/jQuery-File-Upload-9.5-with-CodeIgniter-2.1.4
to make a web, but i need to store file data record to database which i found hard..
i try to use this method :

$this->method_name->insert_file($data);
$data = array(
'item' = > 'item',
'etc' = > etc');

$this->db->insert('table',$data);

and the controller is like this..
$this->method_name->insert_file($this->upload->data());
$data = $this->upload->data();

i try a lot of different simple method that should work on ordinary form, but only output
Syntax:Error JSON.parse, When trying to load data for protovis

so i search, and found this tutorial : https://github.com/blueimp/jQuery-File-Upload/wiki/PHP-MySQL-database-integration

i found it hard to implement cause i using Codeigniter..
please can some one make a simple solution for me..
what i wanted is just save upload record to database

sorry for my bad english
thank you

ryan rynaldo

unread,
May 14, 2014, 1:10:45 AM5/14/14
to jquery-f...@googlegroups.com
nevermind, i figure out on the tutorial for codeigniter doesn't use uploadhandler.php
so i must code the javacript on the view

Sapta Bagus

unread,
Aug 15, 2014, 10:03:48 PM8/15/14
to jquery-f...@googlegroups.com
Halo ryan rynaldo i have same problem with you, can you tell me with slowly cause i'm still new
Reply all
Reply to author
Forward
0 new messages