static function isValidFile($file) {
// Check invalid image hacks
if ($file['tmp_name']
&& stripos($file['type'], 'image/') === 0
&& strpos(mime_content_type($file['tmp_name']), 'image/') === False) {
return false;
}
return true;
}
I changed the function and now it seems to work. I am not a programmer so if you have better solution then I am all ears 🙂 But is it possible for you to look over this and maybe include it in next release?
Thank you for your help!!!