Manual:$wgFileBlacklist/zh

详情
当$CheckFileExtensions 设置为true时，带有这些后缀名的文件将不允许上传.

$FileBlacklist 优先于$FileExtensions ，所以您必须先从黑名单中移除该后缀名，然后才能上传具有该后缀名的文件. 举例来说，要允许用户上传可执行文件，请将下面的内容添加至$LocalSettings 中：

另请参阅

 * 手册:MIME类型检测
 * The filename-prefix-blacklist system message defines prohibited prefixes, to avoid non-descriptive (usually camera-generated) filenames.
 * 手册:MIME类型检测
 * The filename-prefix-blacklist system message defines prohibited prefixes, to avoid non-descriptive (usually camera-generated) filenames.