Problem creating folder and uploading files. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Problem creating folder and uploading files. (/showthread.php?tid=64152) |
Problem creating folder and uploading files. - chocovo - 01-20-2016 Hello, In my form, When I click "Submit" I am trying to create a folder and upload several input files into it. In this moment, creating the folder is ok but I have an error with the upload part. Actually I don't understand how "upload" works and I'm stuck. Thank you for the help. This is part of the code: PHP Code: function addexample() { // When I click Submit. RE: Problem creating folder and uploading files. - Wouter60 - 01-20-2016 Why not use the fileupload library that comes with CodeIgniter? PHP Code: $config['upload_path'] = $pathToUpload . '/'; The do_upload method does all the work. It detects files that are in $_FILES. |