![]() |
File Uploading Class - Errors - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: File Uploading Class - Errors (/showthread.php?tid=3371) |
File Uploading Class - Errors - El Forum - 09-27-2007 [eluser]textnotspeech[/eluser] When using the File Uploading Class in one of my custom library classes I seem to be getting only one error even if more errors exist. In other words, I'm expecting an array and only getting a string returned from the "display_errors()" function. Inside my class I have a function that utilizes the File Uploading Class and I'm stuffing an array to return to the controller that contains a key value pair for the success state and then returns either an array of the file info or the errors. I am assuming that the "display_errors()" function returns an array of each violation of config rules but the User Guide is not specific. Here's my function: Code: <? Inside the Controller: Code: function publish() And the view: Code: <? if ($upload['success']): ?> Code: <ul> |