mime
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mime [2012-10-07 06:32] – Fixed link to renamed page Matt2 | mime [2025-02-06 19:57] (current) – andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MIME configuration ====== | ====== MIME configuration ====== | ||
- | Which file types you can upload via the [[media manager]] is configured through the '' | + | Which file types you can upload via the [[media manager|media manager popup]] or the [[fullscreen mediamanager|fullscreen |
For security reasons it is not possible to configure [[DokuWiki]] to allow any file type. | For security reasons it is not possible to configure [[DokuWiki]] to allow any file type. | ||
Line 7: | Line 7: | ||
:!: **Never enable HTML upload for unprotected wikis**, as this opens Cross Site Scripting vulnerabilities through JavaScript. Only enable this with trusted users. You need to disable the [[config: | :!: **Never enable HTML upload for unprotected wikis**, as this opens Cross Site Scripting vulnerabilities through JavaScript. Only enable this with trusted users. You need to disable the [[config: | ||
- | Additional icons in a similar style are available at http:// | ||
- | |||
- | You can find any file extension with it's mime at http:// | ||
===== Adding additional Mime Types ===== | ===== Adding additional Mime Types ===== | ||
- | Additional mimetypes should be added in '' | + | Additional mimetypes should be added in '' |
Example: | Example: | ||
- | <code - mime.local.conf> | + | <code - conf/mime.local.conf> |
# this would play in the browser (if supported): | # this would play in the browser (if supported): | ||
wav | wav | ||
Line 25: | Line 22: | ||
</ | </ | ||
- | File type icons can be added by placing an image file (PNG or GIF)((Icons must be 16x16.)) | + | Disable by mention the extension //without// a mimetype. Disabling png-images by:<code - conf/ |
+ | png | ||
+ | </ | ||
+ | |||
+ | |||
+ | For configuration changes to take effect on the pages, the [[devel: | ||
+ | |||
+ | ==== File type icons ==== | ||
+ | |||
+ | File type icons can be added by placing an image SVG file named after the file extension into '' | ||
Line 32: | Line 38: | ||
The default install contains the following configurations: | The default install contains the following configurations: | ||
- | ^Extension^Mime type ^ Icon ^ | + | ^ Extension |
- | |jpg |image/ | + | | jpg | image/ |
- | |jpeg | + | | jpeg |
- | |gif |image/ | + | | gif | image/ |
- | |png |image/ | + | | png | image/ |
- | |swf | + | | webp |
- | |mp3 |audio/ | + | | ico | image/ |
- | |ogg |audio/ | + | | svg | image/ |
- | |wav |audio/ | + | | mp3 | audio/ |
- | |tgz |!application/ | + | | ogg | audio/ |
- | |tar |!application/ | + | | wav | audio/ |
- | |gz | + | | webm | video/ |
- | |bz2 |!application/ | + | | ogv | video/ |
- | |zip |!application/ | + | | mp4 | video/ |
- | |rar |!application/ | + | | vtt | text/ |
- | |7z | + | | tgz | !application/ |
- | |pdf |application/ | + | | tar | !application/ |
- | |ps | + | | gz |
- | |rpm |!application/ | + | | bz2 | !application/ |
- | |deb |!application/ | + | | zip | !application/ |
- | |doc |!application/ | + | | rar | !application/ |
- | |xls |!application/ | + | | 7z |
- | |ppt |!application/ | + | | pdf | application/ |
- | |rtf |!application/ | + | | ps |
- | |docx | + | | rpm | !application/ |
- | |xlsx | + | | deb | !application/ |
- | |pptx | + | | doc | !application/ |
- | |sxw |!application/ | + | | xls | !application/ |
- | |sxc |!application/ | + | | ppt | !application/ |
- | |sxi |!application/ | + | | rtf | !application/ |
- | |sxd |!application/ | + | | docx |
- | |odc |!application/ | + | | xlsx |
- | |odf |!application/ | + | | pptx |
- | |odg |!application/ | + | | sxw | !application/ |
- | |odi |!application/ | + | | sxc | !application/ |
- | |odp |!application/ | + | | sxi | !application/ |
- | |ods |!application/ | + | | sxd | !application/ |
- | |odt |!application/ | + | | odc | !application/ |
+ | | odf | !application/ | ||
+ | | odg | !application/ | ||
+ | | odi | !application/ | ||
+ | | odp | !application/ | ||
+ | | ods | !application/ | ||
+ | | odt | !application/ | ||
The following text types are commented by default, because spammers are known to upload spam pages through unprotected Wikis using text type files. | The following text types are commented by default, because spammers are known to upload spam pages through unprotected Wikis using text type files. | ||
- | |html | + | | html | text/ |
- | |htm |text/ | + | | htm |
- | |txt |text/ | + | | txt |
- | |conf | + | | conf | text/ |
- | |xml |text/ | + | | xml |
- | |csv |text/ | + | | csv |
+ | |||
+ | =====See also===== | ||
+ | * [[config|Configuring DokuWiki]] | ||
+ | * [[https:// | ||
+ | * [[plugin: |
mime.1349584330.txt.gz · Last modified: by Matt2