AnsweredAssumed Answered

php not getting the right magic file for mime type?

Question asked by Francesca Shiekh on Jul 14, 2016

I need Sugar to recognize some specific mime types, like .nb, .wl, .cdf etc when uploading documents/notes and when attaching them to emails.

It appears that php doesn't respect the standard magic file database format that the linux file utility uses.
I was able to get the file command to recognize the files correctly but when I used the same working database with php fileinfo it still sees it as a text file.

Any thoughts on how to get php fileinfo to work?