[SOLVED] Problems with file upload! - 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: [SOLVED] Problems with file upload! (/showthread.php?tid=62180) |
[SOLVED] Problems with file upload! - Dracula - 06-16-2015 Hi guys, I'm having some issues with the file upload in CodeIgniter as fallows: PHP Code: public function do_upload($id = null) It doesn't matter what ihave in my controller or view - the code above is from my model. So, when ai dump the $_FILES['userfile'] on screen i get all the data about the file uploaded. Witch is ok. But when idump the uploaded data to the screen i get this: Code: Dump => array(14) { ...absolutley no info about the image uploaded. P.S. - ignore the $this->slider_path - is the path to images for slider. P.S. 2 - the image library is loaded in the constructor method. Edit: Directory permision problems! [url=//www.pinterest.com/pin/create/extension/][/url] RE: Problems with file upload! - Avenirer - 06-16-2015 Why not use this to display the errors? $this->upload->display_errors(); |