Using the same library of file command from Linux (or the version from Windows) we can detect the real mime of content from a file or a buffer.
How to install on MacOSX?
After moving magic.mgc into this directory in the application bundle (filemimetest.app/Contents/MacOS) the example worked. fpc 2.4.0, lazarus 0.9.28.2
I don't expect it matters, but libmagic was installed as file (5.03) using fink.
Thank you to Karl Michel Schindler [email protected]
- Lazarus
- File
- File (Source) - ftp://ftp.astron.com/pub/file/
- File for Windows