3 'application/vnd.oasis.opendocument.base': 'odb',
4 'application/vnd.oasis.opendocument.database': 'odb',
5 'application/vnd.oasis.opendocument.chart': 'odc',
6 'application/vnd.oasis.opendocument.chart-template': 'otc',
7 'application/vnd.oasis.opendocument.formula': 'odf',
8 'application/vnd.oasis.opendocument.formula-template': 'otf',
9 'application/vnd.oasis.opendocument.graphics': 'odg',
10 'application/vnd.oasis.opendocument.graphics-template': 'otg',
11 'application/vnd.oasis.opendocument.graphics-flat-xml': 'fodg',
12 'application/vnd.oasis.opendocument.presentation': 'odp',
13 'application/vnd.oasis.opendocument.presentation-template': 'otp',
14 'application/vnd.oasis.opendocument.presentation-flat-xml': 'fodp',
15 'application/vnd.oasis.opendocument.spreadsheet': 'ods',
16 'application/vnd.oasis.opendocument.spreadsheet-template': 'ots',
17 'application/vnd.oasis.opendocument.spreadsheet-flat-xml': 'fods',
18 'application/vnd.oasis.opendocument.text': 'odt',
19 'application/vnd.oasis.opendocument.text-flat-xml': 'fodt',
20 'application/vnd.oasis.opendocument.text-master': 'odm',
21 'application/vnd.oasis.opendocument.text-template': 'ott',
22 'application/vnd.oasis.opendocument.text-master-template': 'otm',
23 'application/vnd.oasis.opendocument.text-web': 'oth',
25 'application/vnd.sun.xml.base': 'odb',
26 'application/vnd.sun.xml.calc': 'sxc',
27 'application/vnd.sun.xml.calc.template': 'stc',
28 'application/vnd.sun.xml.chart': 'sxs',
29 'application/vnd.sun.xml.draw': 'sxd',
30 'application/vnd.sun.xml.draw.template': 'std',
31 'application/vnd.sun.xml.impress': 'sxi',
32 'application/vnd.sun.xml.impress.template': 'sti',
33 'application/vnd.sun.xml.math': 'sxm',
34 'application/vnd.sun.xml.writer': 'sxw',
35 'application/vnd.sun.xml.writer.global': 'sxg',
36 'application/vnd.sun.xml.writer.template': 'stw',
37 'application/vnd.sun.xml.writer.web': 'stw',
39 'application/rtf': 'rtf',
41 'application/msword': 'doc',
42 'application/vnd.ms-powerpoint': 'ppt',
43 'application/vnd.ms-excel': 'xls',
44 'application/vnd.ms-excel.sheet.binary.macroEnabled.12': 'xlsb',
45 'application/vnd.ms-excel.sheet.macroEnabled.12': 'xlsm',
46 'application/vnd.ms-excel.template.macroEnabled.12': 'xltm',
47 'application/vnd.ms-powerpoint.presentation.macroEnabled.12': 'pptm',
48 'application/vnd.ms-powerpoint.slide.macroEnabled.12': 'sldm',
49 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12': 'ppsm',
50 'application/vnd.ms-powerpoint.template.macroEnabled.12': 'potm',
51 'application/vnd.ms-word.document.macroEnabled.12': 'docm',
52 'application/vnd.ms-word.template.macroEnabled.12': 'dotm',
53 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
54 'application/vnd.openxmlformats-officedocument.spreadsheetml.template': 'xltx',
55 'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'pptx',
56 'application/vnd.openxmlformats-officedocument.presentationml.template': 'potx',
57 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': 'ppsx',
58 'application/vnd.openxmlformats-officedocument.presentationml.slide': 'sldx',
59 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'docx',
60 'application/vnd.openxmlformats-officedocument.wordprocessingml.template': 'dotx',
61 'application/vnd.visio': 'vsd',
62 'application/visio.drawing': 'vsd',
63 'application/vnd.visio2013': 'vsdx',
64 'application/vnd.visio.xml': 'vdx',
65 'application/x-mspublisher': 'pub',
67 'application/wps-office.doc': 'doc',
68 'application/wps-office.docx': 'docx',
69 'application/wps-office.xls': 'xls',
70 'application/wps-office.xlsx': 'xlsx',
71 'application/wps-office.ppt': 'ppt',
72 'application/wps-office.pptx': 'pptx',
74 'application/xhtml+xml': 'xhtml',
75 'application/mathml+xml': 'mml',
77 'application/docbook+xml': 'docbook',
80 'text/spreadsheet': 'slk',
81 'application/x-qpro': 'qpro',
82 'application/x-dbase': 'dbf',
83 'application/vnd.corel-draw': 'cdr',
84 'application/vnd.lotus-wordpro': 'lwp',
85 'application/vnd.lotus-1-2-3': 'wks',
86 'application/vnd.wordperfect': 'wpd',
87 'application/wordperfect5.1': 'wpd',
88 'application/vnd.ms-works': 'wps',
89 'application/clarisworks' : 'cwk',
90 'application/macwriteii' : 'mw',
91 'application/vnd.apple.keynote': 'key',
92 'application/vnd.apple.numbers': 'numbers',
93 'application/vnd.apple.pages': 'pages',
94 'application/x-iwork-keynote-sffkey': 'key',
95 'application/x-iwork-numbers-sffnumbers': 'numbers',
96 'application/x-iwork-pages-sffpages': 'pages',
97 'application/x-hwp': 'hwp',
98 'application/x-aportisdoc': 'pdb',
99 'application/prs.plucker' : 'pdb_plucker',
100 'application/vnd.palm' : 'pdb_palm',
101 'application/x-sony-bbeb' : 'lrf',
102 'application/x-pocket-word': 'psw',
103 'application/x-t602': '602',
104 'application/x-fictionbook+xml': 'fb2',
105 'application/x-abiword': 'abw',
106 'application/x-pagemaker': 'pmd',
107 'application/x-gnumeric': 'gnumeric',
108 'application/vnd.stardivision.calc': 'sdc',
109 'application/vnd.stardivision.draw': 'sda',
110 'application/vnd.stardivision.writer': 'sdw',
111 'application/x-starcalc': 'sdc',
112 'application/x-stardraw': 'sdd',
113 'application/x-starwriter': 'sdw',
114 # relatively uncommon image mimetypes
115 'image/x-freehand': 'fh',
118 'image/tiff': 'tiff',
119 'image/vnd.dxf': 'dxf',
121 'image/x-emf': 'emf',
122 'image/x-targa': 'tga',
123 'image/x-sgf': 'sgf',
124 'image/x-svm': 'svm',
126 'image/x-wmf': 'wmf',
127 'image/x-pict': 'pict',
128 'image/x-cmx': 'cmx',
129 'image/svg+xml': 'svg',
131 'image/x-ms-bmp': 'bmp',
132 'image/x-MS-bmp': 'bmp',
133 'image/x-wpg': 'wpg',
134 'image/x-eps': 'eps',
135 'image/x-met': 'met',
136 'image/x-portable-bitmap': 'pbm',
137 'image/x-photo-cd': 'pcd',
138 'image/x-pcx': 'pcx',
139 'image/x-portable-graymap': 'pgm',
140 'image/x-portable-pixmap': 'ppm',
141 'image/vnd.adobe.photoshop': 'psd',
142 'image/x-cmu-raster': 'ras',
143 'image/x-sun-raster': 'ras',
144 'image/x-xbitmap': 'xbm',
145 'image/x-xpixmap': 'xpm',
148 # disabled for now, this would download gigs of pngs/jpegs...
149 common_noncore_mimetypes
= {
152 'image/jpeg': 'jpeg',
155 'application/pdf': 'pdf',