h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature

Home Page:https://pkg.go.dev/github.com/h2non/filetype?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

m4a mime type

dubrovine opened this issue · comments

filetype van - 1.1.3

Uploading audio file with .m4a extension and its detected as video

filetype.IsVideo(buf) == true
filetype.IsAudio(buf) == false

types.Type={{video 3gpp video/3gpp} 3gp})

I believe it should be something like audio\m4a

Same here. It detects as video/mp4

I believe it should be audio/mp4 instead.