mime
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mime [2015-09-18 11:44] – 0 202.181.239.184 | mime [2024-11-03 07:04] (current) – Aleksandr | ||
---|---|---|---|
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 32: | Line 46: | ||
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 |
Line 84: | Line 104: | ||
=====See also===== | =====See also===== | ||
* [[config|Configuring DokuWiki]] | * [[config|Configuring DokuWiki]] | ||
+ | * You can install and use the [[plugin: |
mime.1442569463.txt.gz · Last modified: 2015-09-18 11:44 by 202.181.239.184