php,codigniter, upload the zip file problem

Posted by user345804 on Stack Overflow See other posts from Stack Overflow or by user345804
Published on 2010-05-22T05:27:33Z Indexed on 2010/05/22 5:30 UTC
Read the original article Hit count: 156

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about zip