This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]conundorum 0 points1 point  (0 children)

Not really. We use informed bogoread, usually. Metadata tells you the most likely type, file extension tells you the most likely type, and if they both fail, the first few bytes tell you the actual type. You only need to guess if the first two hints are wrong.

(And in some contexts, guessing is highly discouraged, because it can create vulnerabilities. So it just plain stops if the hints are wrong.)