cancel
Showing results for 
Search instead for 
Did you mean: 

Content Transformer for 'text/rtf' - how to add?

irvingpop
Champ in-the-making
Champ in-the-making
We're having many RTF files deposited to our Alfresco repository with MIME type "text/rtf".   They can't be previewed,  always give a "FIle cannot be previewed" error message.

Manually changing the MIME type from "text/rtf" to "application/rtf" restores the Preview for that file, but it's not a great solution for our situation.


Both "application/rtf" and "text/rtf" are valid MIME types for RTF,  but Alfresco only seems to know about application/rtf.     How can I add a Content Transformer setting to make Alfresco recognize both?

I tried adding text/rtf to mimetype-map.xml and web-client-config.xml, but that didn't help.

Thanks in advance!
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
Instead of directly modifying mimetype-map.xml, try adding mimetype in below way and see if it works for you or not.

1. Open the <extension>\mimetypes-extension.xml.sample file. Rename the file and remove .sample extension.
2. Modify the inserted MIME type as you need.
3. Make sure that the MIME type extension file is pointed to in the mimetype-map-extension-context.xml file.
    This file contains the following line, which points to your modified file: <value>classpath:alfresco/extension/mimetypes-extension.xml</value>

Hope this helps.

Thanks,




[size=85]If you find a post useful to you, do give a point[/size]