There\’s only one reason. You have an issue because your php is not compiled with exif.
Try to run the following script on your server:
There have to be EXIF extension and something like: EXIF - Support enabled.
So you have two ways to solve an issue:
1. Enable exif extension in php
2. Find and replace code:
$fileType = exif_imagetype($file[\'tmp_name\']);
list($x, $x, $fileType) = getimagesize($file[\'tmp_name\']);