Forum OpenACS Q&A: Response to List of Mime Types?

Collapse
Posted by Andrew Piskorski on
Well, I don't have any pretty names, here's my list of MIME types from my AOLserver nsd.tcl config file:

ns_section ns/MimeTypes 
  set mime_plain {text/plain; charset=iso-8859-1} 
  set mime_html  {text/html; charset=iso-8859-1} 
 
  # See also "http://dqd.com/~mayoff/encoding-doc.html" for advice on 
  # character sets and MIME types in AOLserver. 
 
  ns_param Default     $mime_plain 
  ns_param NoExtension $mime_plain 
  ns_param .txt  $mime_plain 
  ns_param .text $mime_plain 
  ns_param .me   $mime_plain 
  ns_param .htm  $mime_html 
  ns_param .html $mime_html 
 
  # AOLserver default's file extension to MIME type mappings are 
  # defined in "aolserver/nsd/mimetypes.c", and are also documented 
  # at:  http://aolserver.com/docs/admin/config-detailed.html 
 
  # Here we add additional file-extension/MIME mappings: 
 
  ns_param .pcd  image/x-photo-cd 
  ns_param .prc  application/x-pilot 
  ns_param .css  text/css 
  ns_param .doc  application/msword 
  ns_param .xls  application/msexcel 
  ns_param .xlc  application/msexcel 
  ns_param .fm4  application/x-framemaker 
  ns_param .fm5  application/x-framemaker 
  ns_param .ppt  application/vnd.ms-powerpoint 
  ns_param .pot  application/vnd.ms-powerpoint 
  ns_param .pps  application/vnd.ms-powerpoint 
  ns_param .mpp  application/vnd.ms-project 
  ns_param .dvi  application/x-dvi 
 
  # Here we override some of the mappings provided by AOLserver: 
 
  #ns_param .rtf  application/msword