• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem creating folder and uploading files.

#2
Why not use the fileupload library that comes with CodeIgniter?

PHP Code:
$config['upload_path'] = $pathToUpload '/';
$config['allowed_types'] = '*';
$config['overwrite'] = TRUE;
$this->load->library('upload',$config);
$this->upload->do_upload(); 

The do_upload method does all the work. It detects files that are in $_FILES.
Reply


Messages In This Thread
RE: Problem creating folder and uploading files. - by Wouter60 - 01-20-2016, 02:25 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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