Table of Contents
Which file types you can upload via the media manager popup or the fullscreen media manager is configured through the
conf/mime.conf file. It also configures the file extension ↔ mimetype association.
For security reasons it is not possible to configure DokuWiki to allow any file type.
You can find any file extension with its mime at https://filext.com/, these are used since the Igor 2022 release.
Adding additional Mime Types
Additional mimetypes should be added in
mime.local.conf (you need to create this file). The file expects an extension (without the dot) and a mime type. Prefixing the mime type with an exclamation mark (
!) will force the browser to present a download dialog, even if a browser plugin for the file in question exists.
# this would play in the browser (if supported): wav audio/wav # this would be downloaded wav !audio/wav
Disable by mention the extension without a mimetype. Disabling png-images by:
For configuration changes to take effect on the pages, the cache must be purged.
File type icons
File type icons can be added by placing an image SVG file named after the file extension into
lib/images/fileicons/svg/. Note: because the stylesheet used for assigning the fileicons gets cached you need to force a rebuild by touching one of the config files or just save the Configuration Manager another time.
Since Igor 2022 release only SVG icons are automatically recognized. See also this forum post about a workaround .
Default Mime Types
The default install contains the following configurations:
The following text types are commented by default, because spammers are known to upload spam pages through unprotected Wikis using text type files.