[eluser]anstrangelover[/eluser]
here is the code sample
[code] if (is_uploaded_file($_FILES['file']['tmp_name'])
{
$file_detail = $_FILES['file'];
$this->load->helper('string');
$filename = random_string() . '.' . array_pop(explode('.', $file_detail['name']));
move_uploaded_file($_FILES['file']['tmp_name'], './uploads/' . $filename);
}[/c
any question you wanna ask is most welcome.