h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
https://pkg.go.dev/github.com/h2non/filetype?tab=doc
MIT License
2.05k stars 178 forks source link

m4a mime type #112

Open dubrovine opened 2 years ago

dubrovine commented 2 years ago

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

arpanbag001 commented 7 months ago

Same here. It detects as video/mp4

mathieu-aubin commented 7 months ago

I believe it should be audio/mp4 instead.