[eluser]a77icu5[/eluser]
Why my upload method works fine in localhost but when I run the same method in the production server throws "filetype" validation error?
Code:
$config['upload_path'] = APPPATH . 'upload/';
$config['allowed_types'] = 'xls|csv|xlsx';
$this->load->library('upload', $config);
if ( $this->upload->do_upload('files') ) {
//do something
}
return $this->validationErrors(array('error' => $this->upload->display_errors()));