1
$this->load->library('upload');
//Configure upload.
$this->upload->initialize(array(
"upload_path" => './public/uploads/album/',
"allowed_types" => 'mp3',
"max_size" => '2194304000',
"overwrite" => 'FALSE'
));
//Perform upload.
if($this->upload->do_multi_upload("files")) {
$arr = array(
'fx_title' => ?????,
'alb_id' => $id,
'user_id' => $user_id
);
$this->db->insert('nmp3_faixas', $arr);
}
What code would return the names of the uploaded files, and write to the database ? I am using the class https://github.com/stvnthomas/CodeIgniter-Multi-Upload
Ta in the documentation https://github.com/stvnthomas/CodeIgniter-Multi-Upload#get_multi_upload_data get_multi_upload_data(): returns an array with information of the files loaded from there you handle this array and send it to the database.
– Edi. Gomes