Cermify · Error Library · KDP

Package Structure · E-MIME

Incorrect or missing mimetype / manifest entries

Your EPUB's mimetype file or manifest doesn't correctly declare all the files inside the package, which is a hard requirement for EPUB validity.

Severity
error
Automatic repair
Supported
Submission impact
KDP: reject
Rule ID
E-MIME
Error: Incorrect or missing mimetype / manifest entries
Category: Package Structure
Severity: error
Auto Repair: Supported
Rule ID: E-MIME
Affected: KDP=reject, Apple=reject, Google=reject, Kobo=reject
Check this automatically with Cermify

Why this happens

How platforms treat it

PlatformResult
KDPreject
Apple Booksreject
Google Playreject
Koboreject

How Cermify detects it

  1. Confirm zip root contains an uncompressed mimetype entry with exact payload application/epub+zip.
  2. Enumerate package files and compare to OPF manifest hrefs.
  3. Flag undeclared files and missing href targets.
  4. Spot-check media-type values for common resource kinds.

Automatic repair

Cermify can rewrite a correct mimetype entry and add/remove manifest rows for undeclared or missing resources when paths are unambiguous. Media-type guesses follow standard EPUB mappings.

Manual fix

  1. Ensure the first zip entry is stored (not deflated) mimetype = application/epub+zip.
  2. Add a manifest <item> for every resource used by the book (text, CSS, images, fonts, NCX/nav).
  3. Delete manifest rows for files you removed; delete orphan files or declare them.
  4. Validate with epubcheck before KDP upload.

Examples

Correct mimetype bytes and a complete manifest are required.

Incorrect

mimetype → application/zip
<!-- chapter2.xhtml on disk but not in manifest -->

Correct

mimetype → application/epub+zip
<item id="c2" href="chapter2.xhtml" media-type="application/xhtml+xml"/>

FAQ

Why does unzipping and rezipping break mimetype?

Many zip tools compress all files and reorder entries. EPUB requires mimetype uncompressed and first. Use an EPUB-aware packager.

Are META-INF files listed in the manifest?

container.xml lives under META-INF and is not a manifest item. Content files referenced by the OPF must be declared.

Can extra undeclared files pass KDP?

Often no—epubcheck reports undeclared resources. Keep the package lean and fully declared.

Related errors

References