Originally Posted by Kirtai
Aren't epubs identifiable by the contents of the mimetype file that is required to be uncompressed at the start of the zip?
True enough. This is how a Unix programmer would approach this problem. The file command in Unix uses the first bytes in a file to determine the type, while a windows programmer depends on the file extension. Even the Windows OS depends on the file extension, so it is at least consistent.