Forum OpenACS Development: Best way to add Office 2007 mime types?

We have a client that is using OpenACS 5.1 and their users started uploading Office 2007 documents with docx and xlsx extensions. These mime types are not detected by OpenACS.

I added them to the cr_mime_types and cr_mime_type_extension_map. If this the best way to fix this? If this fixed in a newer version of OpenACS? If not I think it will be nice to fix this.

Hi Dave!

How do I do this? I mean, I'd like to add OpenDocument mime types so I can see the right description to download OD files.

do I add them directly to the DB?

Thanks

Collapse
Posted by Dave Bauer on
Best way is to add them in the mime types section of the aolserver config.tcl.
Hi!

I was trying to do it without restart the server 😊

Thanks!

Collapse
Posted by Dave Bauer on
Aha!

Look at cr_mime_types and cr_extension_mime_type_map.

OpenACS adds mime types to this table if they are defined in the aolserver config.

You can manualy insert them into there. Maybe an admin UI would be handy.