[转载+整理]Wordpress上传文件类型限制解决办法
2007-03-08 17:01 | Filed Under WordPress |
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
标签:WordPress, 上传相关日志 随机文章
Comments
One Response to “[转载+整理]Wordpress上传文件类型限制解决办法”
Leave a Reply


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