Closed scholarsmate closed 1 year ago
There doesn't appear to be a straight-forward cross-platform way to determine the mime type of a file in C/C++. There is a cross-plaform python module (https://github.com/ahupp/python-magic) where a developer has ported libmagic to Windows (as a DLL), that this python module uses.
Instead of determining the file content-type in the Ωedit library, instead use Apache Tika in the Scala middleware.
Ωedit needs a mechanism for getting the mime type of a session.