![]() |
file uploading problem - 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 problem (/showthread.php?tid=33640) |
file uploading problem - El Forum - 09-02-2010 [eluser]Patroklo[/eluser] If you make a bmp file in windows paint and change it's extension from "bmp" to "jpg", if you upload it with the $config['allowed_types'] = 'gif|jpg|png'; it will be uploaded without any error. So when, after the uploading, the program tries to change the image size it crashes and don't do anything. I have been digging a little in the upload library and I think that the problem is that the $_FILES[]['type'] it's marked as "jpg" instead of the "bmp". I am also using a extension of form_validation (http://ellislab.com/forums/viewthread/123816/) and made a change in one funtion in that file to solve this, but the problem in the file uploading still is there. I think that the code that i have used in the form_validation may be aplicable in the uploading library to solve this... |