[eluser]praveenarya[/eluser]
thanks for the reply it worked but i have a doubt what if i have two image fields one for original image size and one field for thumbnail image size do i need to write like this
Code:
$upload = array
(
'upload_path' => './uploads/',
'allowed_types' => 'gif|jpg|png'
);
$this->load->library('upload', $upload);
$this->upload->do_upload('img');
$upload2=array
(
'upload_path' => './uploads/thumbs',
'allowed_types' => 'gif|jpg|png',
'max_width'=>'125',
'max_height'=>'90'
);
$this->load->library('upload', $upload2);
$this->upload->do_upload('thumbs');
correct me if iam wrong
thanks