If file error does not match 'UPLOAD_ERR_OK' it means file has not been uploaded to the server. So it is meaningless to check if its content matches any mime type or else.