tags:

views:

25

answers:

0

function upload( &$data = array() ) {

        $config['upload_path'] = 'system/application/orginalimage/';
        $config['allowed_types'] = 'gif|jpg|png|zip';

$config['allowed_type'] = 'application/zip'; $config['allowed_type'] = 'application/x-zip-compressed'; $config['allowed_type'] = 'application/x-compress'; $config['allowed_type'] = 'application/x-compressed'; $config['allowed_type'] = 'application/octet-stream'; $config['allowed_type'] = 'multipart/x-zip';

        $config['max_size'] = '100';
        $config['max_width']  = '1024';
        $config['max_height']  = '768';


        $this->load->library('upload', $config);

        if ( $this->upload->do_upload( 'uploadimage'))
        {
            $data = $this->upload->data() ;
            return true ;
        }
        return false ;
    }

uploading a zip file is not working help me