diff --git a/common/src/java/com/zimbra/common/localconfig/LC.java b/common/src/java/com/zimbra/common/localconfig/LC.java
index 44c69b64c7d..f92124b951a 100644
--- a/common/src/java/com/zimbra/common/localconfig/LC.java
+++ b/common/src/java/com/zimbra/common/localconfig/LC.java
@@ -1323,6 +1323,9 @@ public final class LC {
@Supported
public static final KnownKey redis_cache_synchronize_waitset = KnownKey.newKey(false);
+ // to switch to Tika com.zimbra.cs.convert.TikaExtractionClient
+ public static final KnownKey attachment_extraction_client_class = KnownKey.newKey("com.zimbra.cs.convert.LegacyConverterClient");
+
@Supported
public static final KnownKey lock_based_cache_invalidation_enabled = KnownKey.newKey(true);
diff --git a/store-conf/conf/globs2 b/store-conf/conf/globs2
index ea6a70cadbc..b518b267bea 100644
--- a/store-conf/conf/globs2
+++ b/store-conf/conf/globs2
@@ -743,3 +743,5 @@
50:application/vnd.openxmlformats-officedocument.presentationml.presentation:*.pptm
10:text/x-readme:README*
10:text/x-makefile:Makefile.*
+50:text/html:*.har
+
diff --git a/store/build.xml b/store/build.xml
index 4dd27c8ac3f..2cfa53e6aea 100644
--- a/store/build.xml
+++ b/store/build.xml
@@ -282,7 +282,6 @@
-
@@ -331,6 +330,8 @@
+
+
diff --git a/store/ivy.xml b/store/ivy.xml
index d337fcc1dfb..fcf5ca7d0da 100644
--- a/store/ivy.xml
+++ b/store/ivy.xml
@@ -31,8 +31,8 @@
-
-
+
+
@@ -70,7 +70,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
@@ -124,6 +124,6 @@
-
+
diff --git a/store/src/java/com/zimbra/cs/service/FileUploadServlet.java b/store/src/java/com/zimbra/cs/service/FileUploadServlet.java
index 518639871c4..8ea9389fae3 100644
--- a/store/src/java/com/zimbra/cs/service/FileUploadServlet.java
+++ b/store/src/java/com/zimbra/cs/service/FileUploadServlet.java
@@ -21,7 +21,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
-import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -55,7 +54,6 @@
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClientBuilder;
-import org.apache.tika.Tika;
import com.google.common.base.Strings;
import com.zimbra.client.ZMailbox;
@@ -722,8 +720,7 @@ List handlePlainUpload(HttpServletRequest req, HttpServletResponse resp,
if (filename.endsWith(".har")) {
File file = ((DiskFileItem) fi).getStoreLocation();
try {
- Tika tika = new Tika();
- String mimeType = tika.detect(file);
+ String mimeType = MimeDetect.getMimeDetect().detect(file);
if (mimeType != null) {
up.contentType = mimeType;
}