Detecting MIME Type of Assets Using Apache Tika
Normally, Adobe Experience Manager (AEM) Assets detects the MIME type of assets that you upload from their file extension.
If you use Apache Tika to upload assets, AEM 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.
- Go to https://[AEM_server]:[port]/system/console/configMgr to open the Configuration Manager web console.
- 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.
- 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.
- Click/tap Save to save the changes.