Forum OpenACS Q&A: File storage sets content type incorrectly

Does anyone know a workaround to this? All the word files I uploaded are text/plain.

Even saving and changing to .doc doesn't seem to work.

Collapse
Posted by Jun Yamog on
Hi Jade,

Check to see if aolserver config has .doc as the word mime type.  File storage makes use of ns_guess mime type or something.  Aolserver must report it be word if its in the config file, otherwise it will default to text/plain.

Collapse
Posted by Tilmann Singer on
If that doesn't help try executing 'select * from cr_mime_types;' manually and see if there is an entry for the 'doc' ending that points to 'application/msword'. If not, insert one.
Collapse
Posted by Jade Rubick on
Adding the application/msword entry to the oacs.tcl file in ~nsadmin seems to have done the trick. Thankyou!!!!