Which OS are you using? Where is the mimetype being defined?
.epub files are zip encoded. ???Maybe whatever is interpreting the application/epub+zip sees the zip part of the memitype and unzips it, then tries to process the result (which would be a complete directory) as an epub???