Adding a Mime Type How-To
Lenya comes with many mime types supported "off-the-shelf". However the list of mime types is not (and can not be) exhaustive. If you have a Mime-Type which is not yet known to Lenya, such as Avi Videos (Mime-type video/x-msvideo) that the content editors of your site insist on using, proceed as described here.
Enabling the downloads
The resource types which are known to your Lenya installation are defined in the file lenya/resources.xmap. Add the new Mime-Type in here, for example for AVI this is:
<map:match pattern="*/*/**.avi"> <map:read src="pubs/{1}/resources/{2}/{3}.avi" mime-tyoe="video/x-msvideo" /> </map:match>
You probably need to restart your servlet container in order for the changes to take effect.
Now, visitors of your pages should be able to download objects of this mime-type.
Enabling uploading for content editors
In the asset handling, there are some restrictions as to what filetypes you are allowed to upload. If the file extension you require is not yet allowed, edit the file xslt/authoring/asset.xsl and add it to the list of types defined in <xsl:param name="extensions" ...
If you are using BXE, edit the file xslt/bxeng/asset.xsl and add it to the list of types defined in <xsl:param name="extensions" ...