Welcome Guest, Not a member yet? Register   Sign In
file uploading problem
#1

[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...




Theme © iAndrew 2016 - Forum software by © MyBB