[eluser]MMCCQQ[/eluser]
i want a thumb if i put this:
Will Work?
Code:
$config['upload_path'] = '/home/tunerspo/public_html/img/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '1000';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$config['create_thumb'] = true;
$config['width'] = 140;
$config['height'] = 140;
$this->load->library('upload', $config);
if ($this->upload->do_upload('Filedata'))
{
$res = $this->upload->data();
echo $res['file_name'];
}