付録 I 拡張子と設定するコンテントタイプ属性の関係
文書の[コンテントタイプ]属性は、[ファイル名]属性の値で自動的に判定されます。[ファイル名]に設定された文字列から、最後の「.(ピリオド)」以降の文字列を拡張子とします。
補足
表にない拡張子の場合、「application/octet-stream」となります。
拡張子 | コンテントタイプ | 備考 |
---|---|---|
bmp | image/bmp | ― |
csv | text/csv{;charset}(*1) | ― |
xdw | application/vnd.fujifilm.docuworks | DocuWorks文書 |
xbd | application/vnd.fujifilm.docuworks.binder | DocuWorksバインダー |
xct | application/vnd.fujifilm.docuworks.container | DocuWorks入れ物 |
dwg | image/vnd.dwg | ― |
dxf | image/vnd.dxf | ― |
gif | image/gif | ― |
glf | application/vnd.hp-HPGL | ― |
htm、html | text/html{;charset}(*1) | ― |
jpg、jpeg、jpe、jfif、jfi、jif | image/jpeg | ― |
jt | application/x-jt | ― |
mdb | application/x-msaccess | Microsoft Access |
xls、xla、xlc、 xlm、xlt、xlw | application/vnd.ms-excel | Microsoft Excel |
xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | Microsoft Excel |
xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Microsoft Excel |
ppt、pot、 pps | application/vnd.ms-powerpoint | Microsoft PowerPoint |
pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.12 | Microsoft PowerPoint |
pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Microsoft PowerPoint |
mpp | application/vnd.ms-project | Microsoft Project |
pub | application/x-mspublisher | Microsoft Publisher |
vsd、vst、 vsw、vss | application/vnd.visio | Microsoft Visio |
doc、dot | application/msword | Microsoft Word |
docm | application/vnd.ms-word.document.macroEnabled.12 | Microsoft Word |
docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Microsoft Word |
oxps | application/oxps | ― |
x_b | model/vnd.parasolid.transmit-binary | ― |
x_t | model/vnd.parasolid.transmit-text | ― |
application/pdf | ― | |
png | image/png | ― |
step、stp | application/STEP | ― |
tif、tiff | image/tiff | ― |
tfx | image/tiff-fx | ― |
xml | application/xml{;charset}(*1) | ― |
xps | application/vnd.ms-xpsdocument | ― |
txt | text/plain{;charset}(*1) | ― |
eml、mht、 mhtml、nws | message/rfc822 | ― |
rtf | application/rtf | ― |
jaw、jbw、jfw、jsw、jtd、jtdc、jtt、jttc、jtw、juw、jvw、jxw | application/x-js-taro | 一太郎 |
gz | application/gzip | ― |
tar | application/x-tar | ― |
zip | application/zip | ― |
*1:コンテントタイプが「text/csv」「text/html」「text/plain」「application/xml」の場合、「{;charset}」の部分にキャラクターセットがつきます。
例)text/plain; charset=Windows-31J
例)text/plain; charset=Windows-31J