CodeIgniter Forums
multiUpload library problem - fatal error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: multiUpload library problem - fatal error (/showthread.php?tid=47528)



multiUpload library problem - fatal error - El Forum - 12-12-2011

[eluser]Krystian[/eluser]
Hi,

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 )

Code:
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);
        $this->load->library('Multi_upload');
    
        $files = $this->multi_upload->go_upload();
        
        if ( ! $files )        
        {
            $error = array('error' => $this->upload->display_errors());
   print_r($error);
            //$this->load->view('dashboard/main_menu/dashboard_hmenu_view', $error);
        }    
        else
        {
            $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.



regards
Krystian