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

[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


Messages In This Thread
multiUpload library problem - fatal error - by El Forum - 12-12-2011, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB