Welcome Guest, Not a member yet? Register   Sign In
Jquery File Upload
#1

[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-U...odeIgniter

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

[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();
echo $data['file_name'];




Theme © iAndrew 2016 - Forum software by © MyBB