PHP finfo detecting m4a audio as video
<p>On 2 different AMP servers (one Linux, one Windows), PHP's finfo function is returning a mime type of "video/mp4" for m4a audio files.</p>

<pre><code>$path = '/path/to/some/audio.m4a';
$finfo = finfo_open(FILEINFO_MIME_TYPE);        
$mime = finfo_file($finfo, $path);
print $mime;  // video/mp4
</code></pre>

<p>I believe this can be controlled with Apache's mime.types file, but after finding the line for "audio/mp4" and adding the m4a extension:</p>

<pre><code>audio/mp4                   mp4a m4a
</code></pre>

<p>and restarting Apache, it still reports video/mp4.</p>

<p>How can i get finfo to detect the correct (audio) mime type for .m4a audio files?</p>

<p>TYIA.</p>
