![]() |
Multiple File Upload Sending File Path 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: Multiple File Upload Sending File Path To Database (/showthread.php?tid=23479) |
Multiple File Upload Sending File Path To Database - El Forum - 10-12-2009 [eluser]Unknown[/eluser] Hi, I apologize if the solution to this problem is either extremely easy or explained in another area of the site but as i've just started using CodeIgniter i'm naturally having some problems getting used to it's set up. I want to be able to upload multiple files to an 'uploads' folder and then store the paths of those files to a table in a database. If you could help be this will be greatly appreciated. Cheers. Multiple File Upload Sending File Path To Database - El Forum - 10-12-2009 [eluser]JamieBarton[/eluser] Hi Daniel, Use the following code to retrieve the uploaded file name, then simply do an insert on the $filepath variable. Code: $filepath = $this->upload->data()['full_path']; ![]() |