View Single Post
Old 11-15-2019, 07:37 PM   #136
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
No Sigil in 2011 simply ignored the incorrect mimetype and forced everything based on the file extension. This approach does not work for generic .xml files and some other files that can represent a number of possibly different media-types.

Sigil now, just like in web browsers treats the media type as important and that does determine how a file is displayed or processed.

I will change Sigil's code to look up the media-type from the manifest item and if that is not recognized, then (assuming the extension is not ".xml") look up the media-type via the file extension.

I will also hard code the bookpath to match the epub zip even if a file's type and mediatype are not recognized.

Thanks for testing.

KevinH

Last edited by KevinH; 11-15-2019 at 07:44 PM.
KevinH is online now   Reply With Quote