Use Apache Tika to detect MIME type of digital assets detecting-mime-type-of-assets-using-apache-tika

AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

Typically, Adobe Experience Manager Assets detects the MIME type of assets that you upload from their file extension. If you use Apache Tika to upload assets, Experience Manager Assets detects their MIME type from the content stream during the upload operation instead of the file extension.

This feature is disabled by default. To enable the feature, configure the Day CQ DAM Mime Type service from Configuration Manager.

MIME type detection using the Apache Tika library is a resource-intensive operation.
  1. Go to https://[AEM_server]:[port]/system/console/configMgr to open the Configuration Manager web console.

  2. From the list of services, locate Day CQ DAM Mime Type Service and tap/click the Edit icon beside it to open it in Edit mode.

  3. Select the Detect MIME from content option to enable the parsing of uploaded assets to determine their MIME type while ignoring file extensions. By default, this option is unselected.


  4. Click/tap Save to save the changes.