Hello,
I have a wiki farm. I try to add svg on download files.
I create mime.local.conf with this line :
svg image/svg
And my preload.php is
<?php
// set this to your farm directory
if(!defined('DOKU_FARMDIR')) define('DOKU_FARMDIR', '/var/www/farm');
// include this after DOKU_FARMDIR if you want to use farms
include(fullpath(dirname(__FILE__)).'/farm.php');
// you can overwrite the $config_cascade to your liking
$config_cascade = array(
'interwiki' => array(
'default' => array(DOKU_INC.'conf/interwiki.conf'),
'local' => array(DOKU_CONF.'interwiki.local.conf'),
),
'mime' => array(
'default' => array(DOKU_INC.'conf/mime.conf'),
'local' => array(DOKU_CONF.'mime.local.conf'),
),
'plainauth.users' => array(
'default' => DOKU_CONF.'users.auth.php',
),
);
User auth use LDAP in my farm, so... it's work.
My permissions :
-rw-rw-r-- 1 www-data www-data ./inc/preload.php
-rw-rw---- 1 www-data www-data ./conf/mime.local.conf
In my master wiki, I can add a svg file with media manager, it's work. But in animal wiki, when I add a svg, I have this alert :
Upload denied. This file extension is forbidden!
What is wrong ? How I can add support of svg files in my farm ?