validation file uploadin - 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: validation file uploadin (/showthread.php?tid=67987) |
validation file uploadin - Ali - 05-05-2017 Hello everybody i am building a simple help system with codeigniter. and users can attachment files when response to a ticket. But I do not know how to display error for users when uploading files has problem encountered in view tickets. please check my code. i really need your help PHP Code: public function show() RE: validation file uploadin - InsiteFX - 05-05-2017 It shows you exactly how to do this in the CodeIgniter Users Guide - File_upload. RE: validation file uploadin - Ali - 05-07-2017 (05-05-2017, 03:54 AM)InsiteFX Wrote: It shows you exactly how to do this in the CodeIgniter Users Guide - File_upload. there is this line $error = array('error' => $this->upload->display_errors()); it doesn't work exactly for me. this is related to show function and i can't fix. please help me RE: validation file uploadin - arisroyo - 05-07-2017 I always include the error message in backend through session and redirect back to previous page or controller and check if there's an error in session and display that to user. You can also do it through json response just an idea. |