xref: /dokuwiki/conf/mime.conf (revision f9f54ce2bb33d8bd5881929e1dea07520f704600)
1# Allowed uploadable file extensions and mimetypes are defined here.
2# To extend this file it is recommended to create a mime.local.conf
3# file. Mimetypes that should be downloadable and not be opened in the
4# should be prefixed with a !
5
6jpg     image/jpeg
7jpeg    image/jpeg
8gif     image/gif
9png     image/png
10ico     image/vnd.microsoft.icon
11
12swf     application/x-shockwave-flash
13mp3     audio/mpeg
14ogg     audio/ogg
15wav     audio/wav
16
17tgz     !application/octet-stream
18tar     !application/x-gtar
19gz      !application/octet-stream
20bz2     !application/octet-stream
21zip     !application/zip
22rar     !application/rar
237z      !application/x-7z-compressed
24
25pdf     application/pdf
26ps      !application/postscript
27
28rpm     !application/octet-stream
29deb     !application/octet-stream
30
31doc     !application/msword
32xls     !application/msexcel
33ppt     !application/mspowerpoint
34rtf     !application/msword
35
36docx    !application/vnd.openxmlformats-officedocument.wordprocessingml.document
37xlsx    !application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
38pptx    !application/vnd.openxmlformats-officedocument.presentationml.presentation
39
40sxw     !application/soffice
41sxc     !application/soffice
42sxi     !application/soffice
43sxd     !application/soffice
44
45odc     !application/vnd.oasis.opendocument.chart
46odf     !application/vnd.oasis.opendocument.formula
47odg     !application/vnd.oasis.opendocument.graphics
48odi     !application/vnd.oasis.opendocument.image
49odp     !application/vnd.oasis.opendocument.presentation
50ods     !application/vnd.oasis.opendocument.spreadsheet
51odt     !application/vnd.oasis.opendocument.text
52
53# You should enable HTML and Text uploads only for restricted Wikis.
54# Spammers are known to upload spam pages through unprotected Wikis.
55# Note: Enabling HTML opens Cross Site Scripting vulnerabilities
56#       through JavaScript. Only enable this with trusted users. You
57#       need to disable the iexssprotect option additionally to
58#       adding the mime type here
59#html    text/html
60#htm     text/html
61#txt     text/plain
62#conf    text/plain
63#xml     text/xml
64#csv     text/csv
65
66