getRealType() and webm


$file->getRealType() seems to be returning empty string when the file is .webm.

$file->getName() seems to be working fine.

Here is the code

Am I doing something wrongly or is this bug in phalcon?

fileinfo extension is enable

edited Nov '16

Worked correctly on my side. Returns video/webm. Tested on this configuration:

PHP Version 5.6.12

phalcon Version 2.0.7

fileinfo 1.0.5

Tested with this video.

I would guess it is either video file problem or something with your server configuration.