The MIME type of an ePUB file should be
application/epub+zip.
You can find non-conforming ePUBs within your library with:
Code:
file --mime-type **/*.epub | grep -v 'application/epub+zip'
This can happen if the
mimetype file:
- Is missing.
- Isn't the first entry.
- Is compressed instead of stored.
- Has extra fields.
- Contains the wrong MIME type (seems unlikely).
You can solve the problem by unpacking the ePUB and repacking it with:
Code:
[ -e mimetype ] || printf '%s' 'application/epub+zip' > mimetype
zip -X -Z store abc.epub mimetype
zip -r abc.epub . -x mimetype