View Single Post
Old 10-10-2009, 04:31 AM   #1
rjnagle
Zealot
rjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it isrjnagle knows what time it is
 
Posts: 114
Karma: 2167
Join Date: Oct 2005
Location: Houston, Texas
Device: ipad 1, Nook Simple Touch, Kindle 3, ebookwise 1150
epubcheck error: mimetype entry missing or not the first in archive

I am rolling my own epub files, and I'm getting an error on epubcheck.


Quote:
mimetype entry missing or not the first in archive

A valid epub file must contain an uncompressed file named mimetype as a first entry in the zip archive. That file must contain epub mime type (application/epub+zip).
That's the only error message I get. Everything else validates through epubcheck. Frankly, this is driving me crazy!


my .epub file has this structure

Code:
myfile.epub
OEBPS/
      images
      index.html
      content.opf
      chapter1.html 
      etc....
  META-INF/
       container.xml
  mimetype (this is a file and exists at root of the epub directory.)
the mimetype file has no file extension and only one line:

"application/epub+zip."

I am generating most of my files from docbook, but i just used the same mimetype file from other valid epub file, with identical results.

As I said, everything else is right. Is there something special I need to do about the way I zip up these directories, or is conceivably a whitespace issue? How fussy is the validator about the substance of the mimetype file?

Thanks for your help.

rj
rjnagle is offline   Reply With Quote