MIME types
The application supports several document MIME types. Every MIME type has one or several file extensions which are used to match the uploaded document's MIME type.
Based on the MIME type associated with the uploaded document, the application chooses the associated text extractor. The text extractor works only for a few MIME types; it can easily be extended.
For example, if you upload a "sample.doc", its detected MIME type is "application/msword" because its extension is ".doc". In this case, the text extractor class is "com.openkm.extractor.MsWordTextExtractor".
The detected document MIME type is also used to display an icon which represents the type of document. You can change this icon if you like.
There is a list of common document MIME types already registered in OpenKM.
If you upload a document which MIME type is not in the list, it will be detected as "application/octet-stream".
Add new MIME type
- Click new MIME Type icon
.
- In the Create MIME type view, fill the required fields:
Field | Value |
---|---|
Name |
The MIME type name application/epub+zip |
Description |
General-purpose description. EPUB |
Extensions |
Associated document extensions. In case of multiple extensions, each one should be separated by the character ",". epub |
Image |
Image file. The image size should be 16x16 pixels. |
Search |
When checked, it will be shown in the application's user interface in the search view MIME type list. |
Live Edit |
When checked, this MIME type will be edited using Live Edit when enabled. |
- Click Create button.
Edit MIME Type
- Click Edit icon
.
- In the Edit MIME type view, make changes in the fields.
- Click Edit button.
Delete MIME type
- Click Delete icon
.
- In Delete MIME type view click Delete button.
Backup MIME types
- Click the Export MIME type icon at the top right
.
- After a few seconds the application will download an SQL file.
New MIME types
- Go to the upper right corner to see the action buttons in the table.
- Click
New MIME types button.