mime
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mime [2017-03-14 16:35] – [Table] 46.246.62.160 | mime [2023-11-25 01:00] (current) – [See also] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MIME configuration ====== | ====== MIME configuration ====== | ||
- | Which file types you can upload via the [[media manager|media manager popup]] or the [[fullscreen mediamanager|fullscreen media manager]] is configured through the '' | + | Which file types you can upload via the [[media manager|media manager popup]] or the [[fullscreen mediamanager|fullscreen media manager]] is configured through the '' |
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: | ||
- | The icons are created | + | You can find any file extension |
- | You can find any file extension | + | For Hogfather 2020 release and older, the icons were created |
===== 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 25: | ||
</ | </ | ||
- | 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 '' | ||
+ | |||
+ | Since Igor 2022 release //only// SVG icons are automatically recognized. See also this forum post about a [[https:// | ||
+ | |||
+ | From Hogfather 2020 and older //only// PNG((Icons must be 16x16.)) or GIF((Icons must be 16x16.)) are automatically recognized in the folder '' | ||
Line 33: | Line 47: | ||
^ Extension | ^ Extension | ||
- | | jpg | image/ | + | | jpg | image/ |
- | | jpeg | image/ | + | | jpeg | image/ |
- | | 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 | !application/ | + | | webm | video/ |
- | | bz2 | !application/ | + | | ogv | video/ |
- | | zip | !application/ | + | | mp4 | video/ |
- | | rar | !application/ | + | | vtt | text/ |
- | | 7z | !application/ | + | | tgz | !application/ |
- | | pdf | application/ | + | | tar | !application/ |
- | | ps | !application/ | + | | gz | !application/ |
- | | rpm | !application/ | + | | bz2 | !application/ |
- | | deb | !application/ | + | | zip | !application/ |
- | | doc | !application/ | + | | rar | !application/ |
- | | xls | !application/ | + | | 7z | !application/ |
- | | ppt | !application/ | + | | pdf | application/ |
- | | rtf | !application/ | + | | ps | !application/ |
- | | docx | !application/ | + | | rpm | !application/ |
- | | xlsx | !application/ | + | | deb | !application/ |
- | | pptx | !application/ | + | | doc | !application/ |
- | | sxw | !application/ | + | | xls | !application/ |
- | | sxc | !application/ | + | | ppt | !application/ |
- | | sxi | !application/ | + | | rtf | !application/ |
- | | sxd | !application/ | + | | docx | !application/ |
- | | odc | !application/ | + | | xlsx | !application/ |
- | | odf | !application/ | + | | pptx | !application/ |
- | | 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 | text/ | + | | html | text/ |
- | | htm | text/ | + | | htm | text/ |
- | | txt | text/ | + | | txt | text/ |
- | | conf | text/ | + | | conf | text/ |
- | | xml | text/ | + | | xml | text/ |
- | | csv | text/ | + | | csv | text/ |
Line 84: | Line 104: | ||
=====See also===== | =====See also===== | ||
* [[config|Configuring DokuWiki]] | * [[config|Configuring DokuWiki]] | ||
+ | * You can install and use the [[plugin: |
mime.1489505756.txt.gz · Last modified: 2017-03-14 16:35 by 46.246.62.160