当我们通过Dokuwiki的Media Manager来上传文件时,对html,txt等文件会遇到如下的出错提示:
Upload denied. This file extension is forbidden!
其实你只要更新你的配置文件 conf/mime.conf,将你需要的文件后缀加到允许列表里就可以了。
#Add extensions and mimetypes of files you want to allow to upload here jpg image/jpeg jpeg image/jpeg gif image/gif png image/png tgz application/octet-stream tar application/x-gtar gz application/octet-stream zip application/zip rar application/rar pdf application/pdf ps application/postscript doc application/msword docx application/msword xls application/msexcel ppt application/mspowerpoint rtf application/msword swf application/x-shockwave-flash