• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File upload bug!

#1
[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()));


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.