2.4.8 MIMEタイプの指定

ファイル名:/groupmax/gmaxwww/schema/gmax/etc/config

シンボル名gmax_document_mime_type_def

対応するサービス:共通

Groupmaxサーバから送られてくるファイルについて,拡張子とMIMEタイプの対応付けを指定します。WWWブラウザからヘルパーアプリケーションを起動させる場合,この指定が必要です。gmax_document_mine_type_defは複数指定できます。例に従って指定してください。

(例)
gmax_document_mime_type_def.html=text/html
gmax_document_mime_type_def.txt=text/plain
gmax_document_mime_type_def.exe=application/octet-stream
  • Word,及びExcelの場合
    gmax_document_mime_type_def.doc=application/msword
    gmax_document_mime_type_def.xls=application/msexcel
  • GIFファイル,及びJPEGファイルの場合
    gmax_document_mime_type_def.gif=image/gif
    gmax_document_mime_type_def.jpeg=image/pjpeg

gmax_document_mine_type_defを一つも指定しなかった場合,それぞれ次の組み合わせがデフォルト値になります。なお,一つでも値を指定した場合,デフォルト値は無効となるので注意してください。

htm:text/html

html:text/html

txt:text/plain

以下の拡張子についてはconfig.newファイルに初期値として設定されています。

gmax_document_mime_type_def.htm=text/html

gmax_document_mime_type_def.html=text/html

gmax_document_mime_type_def.txt=text/plain

gmax_document_mime_type_def.gif=image/gif

gmax_document_mime_type_def.jpg=image/pjpeg

gmax_document_mime_type_def.jpeg=image/pjpeg

gmax_document_mime_type_def.doc=application/msword

gmax_document_mime_type_def.xls=application/vnd.ms-excel

gmax_document_mime_type_def.csv=application/vnd.ms-excel

gmax_document_mime_type_def.ppt=application/vnd.ms-powerpoint

gmax_document_mime_type_def.pdf=application/pdf

注意事項
MIMEタイプの内容は,御利用になるマシンの環境によって異なる場合があります。上述の定義例で意図した動作をしない場合は,以下の操作によってMIMEタイプを確認の上,configファイルの設定を変更するか,又はconfigファイルに設定したMIMEタイプをブラウザの設定に追加してください。
  • Internet Explorerの場合
    WindowsのファイルExplorerのフォルダオプション(又はオプション)で,ファイルタイプを参照してください。なお,ファイルタイプを参照してもMIMEタイプが表示されない場合(Windows 2000など)は,デフォルトの設定値で御使用願います。
  • Netscape Navigatorの場合
    設定画面でNavigatorのアプリケーションの設定を参照してください。