Welcome Guest, Not a member yet? Register   Sign In
multiUpload library problem - fatal error


I`ve found this link

Multi Upload Library

copy the library into libraries folder

my controller method ( I`m sending the form to this method )

public function upload()

        $config['upload_path'] = './images/products/'; // server directory
        $config['allowed_types'] = 'gif|jpg|png|pdf'; // by extension, will check for whether it is an image
        $this->load->library('upload', $config);
        $files = $this->multi_upload->go_upload();
        if ( ! $files )        
            $error = array('error' => $this->upload->display_errors());
            //$this->load->view('dashboard/main_menu/dashboard_hmenu_view', $error);
            $data = array('dashboard/dashboard_mainpage_view' => $files);
            $this->load->view('upload_success', $data);

I would like to upload 3 files: one image and two pdf files.
Of course I need to resize image to 280x280 and create mini 90x90

can some of you help with this. some pseudocode would be appreciated.


Theme © iAndrew 2016 - Forum software by © MyBB