$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
Worked correctly on my side. Returns video/webm. Tested on this configuration:
PHP Version 5.6.12
phalcon Version 2.0.7
Tested with this video.
I would guess it is either video file problem or something with your server configuration.