15 ms·
I argue that it’s not possible to determine the mime type of a file from its contents. For example the content could be malformed. An editor or IDE should still
by hibbelig 6y ago
I argue that it’s not possible to determine the mime type of a file from its contents. For example the content could be malformed. An editor or IDE should still highlight it so the user can find the syntax error.
Of course, for some files it is possible. But we need the metadata for the other files.