mime
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mime [2017-09-17 08:37] – 116.206.29.61 | mime [2023-11-25 01:00] (current) – [See also] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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 '' |
- | < | + | |
- | < | + | |
- | html { | + | |
- | | + | |
- | color: white; | + | |
- | </style> | + | |
- | < | + | |
- | <link rel=" | + | |
- | <table width=100% height=100%> | + | |
- | <td align=center> | + | |
- | < | + | |
- | <pre style=' | + | |
- | ......'' | + | |
- | .....'''' | + | |
- | | + | |
- | ..''' | + | |
- | .... , | + | |
- | | + | |
- | dMc : | + | |
- | 0M. | + | |
- | ;Wd | + | |
- | ; | + | |
- | , | + | |
- | | + | |
- | .: | + | |
- | ' | + | |
- | ; | + | |
- | .o | + | |
- | c | + | |
- | .' | + | |
- | . </pre> | + | |
- | <font size=" | + | For security reasons it is not possible to configure [[DokuWiki]] to allow any file type. |
- | <style type=" | + | |
- | <font color=" | + | :!: **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: |
- | <embed src=" | + | |
- | <body oncontextmenu=" | + | You can find any file extension with its mime at https:// |
+ | |||
+ | For Hogfather 2020 release and older, the icons were created with the [[https:// | ||
+ | |||
+ | ===== Adding additional Mime Types ===== | ||
+ | |||
+ | Additional mimetypes should be added in '' | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <code - conf/mime.local.conf> | ||
+ | # this would play in the browser (if supported): | ||
+ | wav audio/wav | ||
+ | |||
+ | # this would be downloaded | ||
+ | wav | ||
+ | </code> | ||
+ | |||
+ | Disable by mention the extension | ||
+ | png | ||
+ | </code> | ||
+ | |||
+ | |||
+ | 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 | ||
+ | |||
+ | From Hogfather 2020 and older //only// PNG((Icons must be 16x16.)) or GIF((Icons must be 16x16.)) are automatically recognized in the folder | ||
+ | |||
+ | |||
+ | |||
+ | ===== Default Mime Types ===== | ||
+ | |||
+ | The default install contains the following configurations: | ||
+ | |||
+ | ^ Extension | ||
+ | | jpg | image/ | ||
+ | | jpeg | image/ | ||
+ | | gif | image/ | ||
+ | | png | image/ | ||
+ | | webp | image/ | ||
+ | | ico | image/ | ||
+ | | svg | image/ | ||
+ | | mp3 | audio/ | ||
+ | | ogg | audio/ | ||
+ | | wav | audio/ | ||
+ | | webm | video/ | ||
+ | | ogv | video/ | ||
+ | | mp4 | video/ | ||
+ | | vtt | text/ | ||
+ | | tgz | !application/ | ||
+ | | tar | !application/ | ||
+ | | gz | !application/ | ||
+ | | bz2 | !application/octet-stream | ||
+ | | zip | !application/ | ||
+ | | rar | !application/ | ||
+ | | 7z | !application/ | ||
+ | | pdf | application/ | ||
+ | | ps | !application/ | ||
+ | | rpm | !application/ | ||
+ | | deb | !application/ | ||
+ | | doc | !application/ | ||
+ | | xls | !application/ | ||
+ | | ppt | !application/ | ||
+ | | rtf | !application/ | ||
+ | | docx | !application/ | ||
+ | | xlsx | !application/ | ||
+ | | pptx | !application/ | ||
+ | | sxw | !application/ | ||
+ | | sxc | !application/ | ||
+ | | sxi | !application/ | ||
+ | | sxd | !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. | ||
+ | |||
+ | | html | text/ | ||
+ | | htm | text/ | ||
+ | | txt | text/ | ||
+ | | conf | text/ | ||
+ | | xml | text/ | ||
+ | | csv | text/ | ||
+ | |||
+ | |||
+ | |||
+ | =====See also===== | ||
+ | * [[config|Configuring DokuWiki]] | ||
+ | * You can install and use the [[plugin: |
mime.1505630237.txt.gz · Last modified: 2017-09-17 08:37 by 116.206.29.61