[eluser]dimasVS[/eluser]
Hi all,,
I want to know, how to get the name of file that had been encrypted ???
I'll use that name to be inserted into database.
this is my script :
function do_upload(){
$n = rand(0,100000);
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$config['encrypt_name'] = "$n";
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
$error = array('error' => $this->upload->display_errors());
$this->load->view('admin/employeeAdd', $error);
}
else
{
$data = array('upload_data' => $this->upload->data());
echo "Register Successfull<br />";
echo anchor(base_url().'index.php/admin/employee', 'Back');
}
}
how to get the value of $config['encrypt_name'] or $config['file_name'] ?
and how to throw it to models ?
thanks so much