--- a/src/kde/kioslave/recoll/htmlif.cpp
+++ b/src/kde/kioslave/recoll/htmlif.cpp
@@ -249,7 +249,10 @@
 	return;
     }
     o_rclconfig->setKeyDir(path_getfather(fn));
-    FileInterner interner(fn, &st, o_rclconfig, tmpdir, &doc.mimetype);
+    FileInterner interner(fn, &st, o_rclconfig, tmpdir, 
+                          FileInterner::FIF_forPreview | 
+                          FileInterner::FIF_doUseInputMimetype,
+                          &doc.mimetype);
     Rcl::Doc fdoc;
     string ipath = doc.ipath;
     if (!interner.internfile(fdoc, ipath)) {