Welcome Guest, Not a member yet? Register   Sign In
image upload
#3

[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


Messages In This Thread
image upload - by El Forum - 09-16-2009, 05:39 AM
image upload - by El Forum - 09-16-2009, 08:31 AM
image upload - by El Forum - 09-16-2009, 09:42 PM
image upload - by El Forum - 09-17-2009, 04:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB