swf上传的时候验证type的时候过不去

Posted on 2014-08-20 15:22  anyongchao  阅读(113)  评论(0)    收藏  举报

在system/libraries/Upload.php

 

 

修改 

public function is_allowed_filetype(){
  //xxxxxx
}

 

 

在最后加上

//swf(为了可以上传swfupload才加判断) 上传验证mime类型,
        if($this->is_swf){
            if('application/octet-stream' == $this->file_type){
                return TRUE;
            }
        }