4 ms·
I wish filesystems would commonly support to store the Mime type. File extensions seem to me still a residue from MS DOS times. That would also make working wit
by blablabla123 7y ago
I wish filesystems would commonly support to store the Mime type. File extensions seem to me still a residue from MS DOS times. That would also make working with static (file) webservers much easier. (It's such a breeze to work with blob stores that allow to save the mime type...)
- AnIdiotOnTheNet 7y agoWell one advantage of the "file extension" mechanism is that it is the stupidest thing that will work [0]. It's just like having a type code only it is embedded in the file name so it doesn't require any special features from any filesystem. [0] Actually, UNIX's "everybody just guess" mechanism is probably the stupidest, but it is so stupid I didn't even consider it.
- blablabla123 7y agoYes sure, it can always be attached somehow. But even if used everywhere it has it's limits and ambiguities, e.g. when dealing with .jpg vs. .jpeg, .yml vs. .yaml and so on... It gets even more interesting when Editors create a temporary file by adding a prefix or suffix, or git/a package manager creates an additional file for conflict resolution.
- D-Coder 7y agoFile extensions go back a lot farther than MS-DOS, kid. :-)
- protanopia 7y agoBeFS does use MIME types. https://arstechnica.com/gadgets/2001/08/metadata/9/ https://arstechnica.com/gadgets/2001/08/metadata/9/