WordPress 2.1 之前的版本修改 wp-includes/functions-post.php
Wordpress 2.1 之后的版本修改 wp-includes/functions.php
查找:
- function wp_check_filetype($filename, $mimes = null) {
在底下的$mimes里加入要添加的文件类型,例如 rar :
- 'rar' => 'application/rar',
不明白为啥wordpress开发组不将其作为后台自定义功能放开
参考资料:
http://www.iyoyo.org/posts/139.html
http://www.betalog.com/post/822.html
相关日志

不错!终于找到了上传文件的解决办法,马上就去实验一下。