The finfo function is returning crazy mime types. Look the following code, what is going on?
finfo
check this