[eluser]Unknown[/eluser]
Hi;
T think that the solution is modifing this line:
Code:
$finfo = new finfo(FILEINFO_MIME_TYPE);
for this:
Code:
$finfo = new finfo(FILEINFO_MIME);
When you use finfo like a object you must use FILEINFO_MIME and when use finfo_file function you must use FILEINFO_MIME_TYPE, I think ....