Welcome Guest, Not a member yet? Register   Sign In
CI_Upload.php bug?
#2

[eluser]Hernando[/eluser]
It's a bug in CodeIgniter 1.7.2. It's ok in CodeIgniter 2.0

In Upload.php change:


if (in_array($val, $image_types))

by

if ($this->file_ext == '.'.$val && in_array($val, $image_types))


Cheers, Hernando


Messages In This Thread
CI_Upload.php bug? - by El Forum - 07-06-2010, 03:35 PM
CI_Upload.php bug? - by El Forum - 07-06-2010, 04:36 PM
CI_Upload.php bug? - by El Forum - 11-02-2010, 10:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB