Re: Why file content sniffing sucks



On Wed, 24 Dec 2003, Fabio Gomes wrote:

> File type determination by content is crap. It's a misfeature. It is 
> completely unnecessary. Its benefits do not compensate its drawbacks:

The "right solution" might be to use file content as a fallback if the
file extension doesn't have a completely unambiguous meaning.

e.g.:
	For *.txt filenames, always treat them as text/plain
	For a 'README' filename, guess based on content.

-- Elliot
At the School of Hard Knocks, tuition is always high.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]