作者:乔山办公网日期:
返回目录:office365
由于提供的信息不很多,简单猜测百为试图将原来可以正常运行的index.php重命名为index.do并仍能正常运行这样的要求。如果是其他需要仅供参考度
打开apache 的httpd.conf 文件,搜索 AddType 一节,归属于<IfModule mime_module> 部分。
如果仅仅是吧php修改为do,则回只需要修改 .php 相关的那一行就行,想了解更多的话,到答apache目录conf目录寻找一个mime.types的文件慢慢看就行了。
解决mediawiki 文件扩展名 与检测到的文件MIME类型(application/zip)不匹配
标签: 扩展extension文档fileweb
在mediawiki中,如果上传doc或者docx文件时,经常会出现:文件扩展名".***" 与检测到的文件MIME类型(application/zip)不匹配 的警告。要想去掉这个警告,需要更e69da5e887aae79fa5e98193335改includes目录下的DefaultSettings.php文件,其中的 $wgVerifyMimeType = false, 即可。
本内容取自mediawiki官方文档。原文内容如下:
You can also disable the MIME type check completely by setting $wgVerifyMimeType = false; — note however that this is very insecure: arbitrary files can then be uploaded with a "harmless" file extension, but may possibly still executed/interpreted in a harmful way on the client computer, or the web server. Pending: how does this relate to$wgCheckFileExtensions?
file:文件。可以是各种格式的。
document:文档。多为文字格式的,也可能是多媒体格式。
paper:纸张。多为记录document用的
文件拓展名 对应的e799bee5baa6e79fa5e98193e78988e69d83362MIME类型,文件上传下载有用
文件拓展名 MIME 类型
.doc application/msword
.dot application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
.docm application/vnd.ms-word.document.macroEnabled.12
.dotm application/vnd.ms-word.template.macroEnabled.12
.xls application/vnd.ms-excel
.xlt application/vnd.ms-excel
.xla application/vnd.ms-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlsm application/vnd.ms-excel.sheet.macroEnabled.12
.xltm application/vnd.ms-excel.template.macroEnabled.12
.xlam application/vnd.ms-excel.addin.macroEnabled.12
.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
.ppt application/vnd.ms-powerpoint
.pot application/vnd.ms-powerpoint
.pps application/vnd.ms-powerpoint
.ppa application/vnd.ms-powerpoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppam application/vnd.ms-powerpoint.addin.macroEnabled.12
.pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12
.potm application/vnd.ms-powerpoint.template.macroEnabled.12
.ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12