Welcome Guest, Not a member yet? Register   Sign In
File Upload error
#1

[eluser]hrg.vincent[/eluser]
Controller
Code:
$this->showHead();

$config['upload_path'] = './upload/';  
$config['allowed_types'] = 'xlsx';

$this->load->library('upload', $config);
$this->upload->initialize($config);
    
if (!$this->upload->do_upload()){
$data = array('msg' => $this->upload->display_errors());  
}
else {
$data['upload_data'] = $this->upload->data('flex_file');
}

$this->load->view('flex/thanks');

any wrong from my code, as I can't upload the file to the folder upload.
it keep go to the part in below (error):
Code:
if (!$this->upload->do_upload()){
$data = array('msg' => $this->upload->display_errors());  
}


Messages In This Thread
File Upload error - by El Forum - 02-27-2014, 12:33 AM
File Upload error - by El Forum - 02-27-2014, 10:31 AM
File Upload error - by El Forum - 02-27-2014, 06:08 PM
File Upload error - by El Forum - 02-27-2014, 06:33 PM
File Upload error - by El Forum - 02-27-2014, 07:09 PM
File Upload error - by El Forum - 02-27-2014, 09:14 PM
File Upload error - by El Forum - 02-27-2014, 09:33 PM
File Upload error - by El Forum - 02-27-2014, 11:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB