Added Open XML MIME types

SVN revision: 2196
This commit is contained in:
Stefan Ritt 2009-05-06 13:25:32 +00:00
parent e5babe3caf
commit 21e9f04620

View File

@ -271,56 +271,70 @@ int attr_flags_default[] = { AF_REQUIRED, 0, 0, 0 };
struct { struct {
char ext[32]; char ext[32];
char type[32]; char type[80];
} filetype[] = { } filetype[] = {
{ {
".AI", "application/postscript"}, { ".AI", "application/postscript"}, {
".ASC", "text/plain"}, { ".ASC", "text/plain"}, {
".BZ2", "application/x-bzip2"}, { ".BZ2", "application/x-bzip2"}, {
".CFG", "text/plain"}, { ".CFG", "text/plain"}, {
".CHRT", "application/x-kchart"}, { ".CHRT", "application/x-kchart"}, {
".CONF", "text/plain"}, { ".CONF", "text/plain"}, {
".CSH", "application/x-csh"}, { ".CSH", "application/x-csh"}, {
".CSS", "text/css"}, { ".CSS", "text/css"}, {
".DOC", "application/msword"}, { ".DOC", "application/msword"}, {
".DVI", "application/x-dvi"}, { ".DVI", "application/x-dvi"}, {
".EPS", "application/postscript"}, { ".EPS", "application/postscript"}, {
".GIF", "image/gif"}, { ".GIF", "image/gif"}, {
".GZ", "application/x-gzip"}, { ".GZ", "application/x-gzip"}, {
".HTM", "text/html"}, { ".HTM", "text/html"}, {
".HTML", "text/html"}, { ".HTML", "text/html"}, {
".ICO", "image/x-icon"}, { ".ICO", "image/x-icon"}, {
".JPEG", "image/jpeg"}, { ".JPEG", "image/jpeg"}, {
".JPG", "image/jpeg"}, { ".JPG", "image/jpeg"}, {
".JS", "application/x-javascript"}, { ".JS", "application/x-javascript"}, {
".KPR", "application/x-kpresenter"}, { ".KPR", "application/x-kpresenter"}, {
".KSP", "application/x-kspread"}, { ".KSP", "application/x-kspread"}, {
".KWD", "application/x-kword"}, { ".KWD", "application/x-kword"}, {
".MP3", "audio/mpeg"}, { ".MP3", "audio/mpeg"}, {
".OGG", "application/x-ogg"}, { ".OGG", "application/x-ogg"}, {
".PDF", "application/pdf"}, { ".PDF", "application/pdf"}, {
".PNG", "image/png"}, { ".PNG", "image/png"}, {
".PS", "application/postscript"}, { ".PS", "application/postscript"}, {
".RAM", "audio/x-pn-realaudio"}, { ".RAM", "audio/x-pn-realaudio"}, {
".RM", "audio/x-pn-realaudio"}, { ".RM", "audio/x-pn-realaudio"}, {
".RM", "audio/x-pn-realaudio"}, { ".RM", "audio/x-pn-realaudio"}, {
".RM", "audio/x-pn-realaudio"}, { ".RM", "audio/x-pn-realaudio"}, {
".RPM", "application/x-rpm"}, { ".RPM", "application/x-rpm"}, {
".RTF", "application/rtf"}, { ".RTF", "application/rtf"}, {
".SH", "application/x-sh"}, { ".SH", "application/x-sh"}, {
".TAR", "application/x-tar"}, { ".TAR", "application/x-tar"}, {
".TCL", "application/x-tcl"}, { ".TCL", "application/x-tcl"}, {
".TEX", "application/x-tex"}, { ".TEX", "application/x-tex"}, {
".TGZ", "application/x-gzip"}, { ".TGZ", "application/x-gzip"}, {
".TIF", "image/tiff"}, { ".TIF", "image/tiff"}, {
".TIFF", "image/tiff"}, { ".TIFF", "image/tiff"}, {
".TXT", "text/plain"}, { ".TXT", "text/plain"}, {
".WAV", "audio/x-wav"}, { ".WAV", "audio/x-wav"}, {
".XLS", "application/x-msexcel"}, { ".XLS", "application/x-msexcel"}, {
".XML", "text/xml"}, { ".XML", "text/xml"}, {
".XSL", "text/xml"}, { ".XSL", "text/xml"}, {
".ZIP", "application/x-zip-compressed"}, { ".ZIP", "application/x-zip-compressed"}, {
/* Open XML file types */
".DOCM", "application/vnd.ms-word.document.macroEnabled.12"}, {
".DOCX", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"}, {
".DOTM", "application/vnd.ms-word.template.macroEnabled.12"}, {
".DOTX", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"}, {
".PPSM", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"}, {
".PPSX", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"}, {
".PPTM", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"}, {
".PPTX", "application/vnd.openxmlformats-officedocument.presentationml.presentation"}, {
".XLSB", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"}, {
".XLSM", "application/vnd.ms-excel.sheet.macroEnabled.12"}, {
".XLSX", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}, {
".XPS", "application/vnd.ms-xpsdocument"}, {
"", ""},}; "", ""},};