I am using the below code to validate an image.
getimagesize($file['tmp_name'])=== false
It's working fine in php 5.2 (wamp server local), but not working in live website(php 5.6).
MIME_Content_type
is showing that it's an image/jpeg
, but it's not an image.
What should I do?
I am using joomla 3.10
$_FILES
with your$file
variable? stackoverflow.com/a/6755263/2943403