[eluser]Stu Green[/eluser]
Hiya,
I've just found a new problem since upgrading to 1.7.2.
If I set an array of allowed filetypes ('jpg', 'gif', 'pdf', 'doc'), and then try to upload a PDF file it now breaks, whereas before it worked.
I looked in to this, and in the Upload library under is_allowed_filetype() there is new code that says:
Code:
// Images get some additional checks
if (in_array($val, $image_types))
{
if (getimagesize($this->file_temp) === FALSE)
{
return FALSE;
}
}
Now if I'm saying that both images and PDF files are allowed types, this will break because JPG is in the array but it returns false before it gets there.
Can someone shed some light on this?
Thanks