Welcome Guest, Not a member yet? Register   Sign In
Problem about Upload Filename into Database?
#3

[eluser]Zeeshan Rasool[/eluser]
check acording to this sample.
$config['upload_path'] = './resources/admin_videos';
$config['allowed_types'] = 'mp3';
$config['max_size'] = '5000';

//$config['overwrite'] = false;

$this->upload->initialize($config);
$this->load->library('upload', $config);

if(!$this->upload->do_upload($video))
{
$error = array('error' => $this->upload->display_errors());
return $error;
}
else
{
$data = array('upload_data' => $this->upload->data());
$video_path =$data['upload_data']['file_name'];

}
$array = array(
'video_title' => $this->input->post('title'),
'video_path' => $video_path
);
$this->db->set($array);
$this->db->insert('help_video');


Messages In This Thread
Problem about Upload Filename into Database? - by El Forum - 05-23-2008, 03:27 AM
Problem about Upload Filename into Database? - by El Forum - 05-23-2008, 04:09 AM
Problem about Upload Filename into Database? - by El Forum - 06-25-2008, 10:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB