![]() |
Jquery File Upload - 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 File Upload (/showthread.php?tid=39511) |
Jquery File Upload - El Forum - 03-12-2011 [eluser]sunnyd[/eluser] I am aware that there are several Jquery file upload topics on here but after trying and failing with so many suggested solutions shown in the topins in the forum, I came across this example here https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-use-the-plugin-with-CodeIgniter Tested it and it uploads files to their correct folder. However, I can seem to save the filename into my database. Does anyone have an idea of how this can be achieved. Thanks Sunny Jquery File Upload - El Forum - 03-12-2011 [eluser]Rick Jolly[/eluser] Looking at the example, if the upload was successful, what you want to do is call the upload library data() method to get an array that contains the file name: Code: $this->upload->data(); Example: Code: $data = $this->upload->data(); |