Allowmultiple file upload problem solved. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Allowmultiple file upload problem solved. (/showthread.php?tid=30844) |
Allowmultiple file upload problem solved. - El Forum - 05-27-2010 [eluser]alvk4r[/eluser] If you try upload a file through an upload config with various mime types and include an image ext. i.e (png|pdf), then you could upload the image, but the other file report an error. I make some changes into the core library Upload (/system/libraries/Upload.php). The change don't affect the functionality of the class, I only change the location of one validation statement. You can view a diff for details. I attach the file modified. There is the full code of method modified, make it simple copy & paste replacing the method: Code: /** Allowmultiple file upload problem solved. - El Forum - 06-08-2010 [eluser]danmontgomery[/eluser] This issue is fixed in 2.0 as well. http://bitbucket.org/ellislab/codeigniter/changeset/4ce5f465478a |