4 ms·
File extensions were the primary way to determine file type in VMS and CP/M. Consequently MS-DOS and Windows inherited that behavior. As you said, UNIX always
by wongarsu 3y ago
File extensions were the primary way to determine file type in VMS and CP/M. Consequently MS-DOS and Windows inherited that behavior.
As you said, UNIX always went with heuristics based on the file content instead (and is the primary reason many file formats have fixed bytes to aid that process).
And the web standarized on mime types transferred in the metadata, with how to set them correctly left as an exercise to the reader. Which usually means they are set based on file extension because that's faster.