Welcome Guest, Not a member yet? Register   Sign In
Multiple File Upload Sending File Path To Database
#1

[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.
#2

[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'];


Smile




Theme © iAndrew 2016 - Forum software by © MyBB