上传文件类型
上传文件类型的设置在dokuwiki/conf/mime.conf中配置。旧版不支持的话,请在mime.conf中添加如下内容:
docx !application/vnd.openxmlformats-officedocument.wordprocessingml.document
xlsx !application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
pptx !application/vnd.openxmlformats-officedocument.presentationml.presentation默认不支持html、htm、txt、conf、xml、csv等,如需支持去掉前面的注释即可。
#html text/html
#htm text/html
#txt text/plain
#conf text/plain
#xml text/xml
#csv text/csv
- 修改上传附件大小
在D:\phpStudy\PHPa\php.ini和D:\phpStudy\PHPb\php.ini中找到upload_max_filesize,其默认值是2M,以及修改上传的最大数量max_file_uploads,默认是20,这两项可以根据需要自行修改。
谢谢这位博友的分享http://www.jbxue.com/cms/1703.html