3 votes

epubcheck error: mimetype entry missing or not the first in archive

zip -X0 ../myEPUB.epub mimetype zip -9 -r ../myEPUB.epub META-INF OEBPS another common error i was getting was extra characters in mimetype 'Mimetype file should only contain the string 'application/...
Jonathan O'Gorman's user avatar
2 votes

epubcheck error: mimetype entry missing or not the first in archive

As the accepted answer states, the mimetype file should be stored uncompressed in the archive. For those looking for a programmatic way to validate and package an EPUB I recommend using the Java ...
valentin's user avatar
  • 121
2 votes
Accepted

ePub validator is giving me errors. How can I address these reported errors?

Unfortunately, there's a lot more wrong than the errors listed. The first line needs to be (adding the question mark): <?xml version="1.0" encoding="utf-8" standalone="no"?> After you correct ...
idiotprogrammer's user avatar
1 vote

Why does EPUBCheck report warnings and errors for ISO8601 date-time string?

This happens because at least two parts of EPUBCheck dislike the ISO8601 timezone format in different ways. In the dc:date context, EPUBCheck is OK with "2020-12-09T14:06:40-07:00" but not ...
Ray N. Franklin's user avatar
1 vote
Accepted

What tag use is expected in an ePub toc.xhtml?

If you are not going to use a ncx, my answer is no, you don't need to change this xhtml file at all. I'm going to guess here. ns:ncx means that you are using a namespace called "ncx." A namespace is ...
idiotprogrammer's user avatar
1 vote

CSS error in EPUB

I posted an issue at the epubcheck site. Someone there knew right away what the problem was. This is acceptable: <p>Text <span class="red">red</span> regular.</p> This is ...
Paulb's user avatar
  • 185
1 vote

The mimetype file has an extra field of length n. The use of the extra field feature of the ZIP format is not permitted for the mimetype file

I'm responsible for an attempt to improve this error message, see https://github.com/IDPF/epubcheck/pull/497 for details. Essentially your Zip packer puts some application or operating system specific ...
skreutzer's user avatar
  • 101
1 vote

epubcheck error: mimetype entry missing or not the first in archive

Here are the steps I used to force the "mimetype" file to be the first in the EPUB archive using 7-Zip in Windows: Make a copy of your EPUB (zip) file (e.g. MyBookCopy.epub), so to not ...
Pi Da's user avatar
  • 111
1 vote

epubcheck error: mimetype entry missing or not the first in archive

7-zip sorts files by names rename mimetype to ##mimetype Add to archive... ##mimetype Archive: book.zip Archive format: zip Compression level: Store OK Add to archive... the other folders META_INF ...
fstil's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible