Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

File extensions aren't limited to 3 characters these days.


sort by: page size:

File extensions are simple and, crucially, visible and understandable to the user. They're far better than any proposed alternative.

If you were going to go the whole hog, slap the entire MIME type name in the extension :) Otherwise I don't think 3-4 character file extensions have really let anyone down in the history of computing.

Oh goodie another file extension.

Files are allowed to not have extensions. Wouldn't just * been enough?

No. File extensions are stupid and broken.

I've only ever seen Windows-based systems adhere strictly to the 3-character extension. All 'Nix's I've worked with (Linux, BSD's, etc) usually have native files on the system with extensions longer than 3 characters. (.conf anyone?)

Also, probably should note, file extensions are largely a Windows-based OS thing as well. On the 'Nix's, an extension isn't really needed (OK, it's not needed on Windows-based OS's either, but the OS prefers it). the "file" command will tell you all you need to know about a file without an extension. Or, you can just open it with a text editor. Or, execute it if it has execute permissions, etc.

So, it seems, the 3-character extension (or extensions at all) are really a Windows-Based OS thing.

(While we're at it, Windows-Based OS's are the only OS's I've worked with that actually require something in-front of the "."! For example, try to natively create a ".somefile" on Windows -- it will complain and not let you).


I meant file extension. My bad.

Instead of saying with ‘a file extension’, It should say with ‘a reserved file extension’.

Extensions should be for user convenience, not OS functionality. And files should be assumed to be text unless otherwise specified. IMHO.

It's nice! Quick feedback for UX improvement: let the user upload a file first, detect the extension, then ask what file type to convert to.

But it's not a file type, it's a file extension that sometimes can be matched to a content type.

Why would you simply rely on extensions instead of, say, also the file's magic numbers?

File extensions go back a lot farther than MS-DOS, kid. :-)

While it's true that they don't have meaning to the lower levels of the system, file extensions matter a whole lot to the higher-level frameworks and the GUI that ordinary people use.

Most users don’t understand file extensions.

There are plenty of file formats that have multiple extensions in common use. I can think of a few off the top of my head:

- .jpg / .jpeg

- .tif / .tiff

- .htm / .html

- .cpp / .cxx

It's frustrating at times, but not all file formats have One True Extension.


What would the file extension be?

> file extensions by default

File extensions aren't necessarily mandatory in Windows as long as the Magic Number is recognized by Windows (Word documents, for example).


The word they're looking for is "file extension name".
next

Legal | privacy