Configuring MIME types in WCM

I recently received a request from a WCM v7 customer who wanted to store KML files in WCM and render them via the WCM content servlet. When they did this, the Content-Type in the HTTP header was set to "unknown/unknown" and they wanted it to show "application/" so that the clients dealt with the KML file appropriately.

This can be done by specifying the mime type in the WCM Config Service properties file, along the lines described here

Another approach would have been to do this from the HTTP Server but I advised that they use the WCM configuration since then all mime types are configured in once for the whole cluster and not once on each HTTP server, with the attendant possibility of error.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s