上传exe格式的问题
exe格式在mimes里是允许的格式呀,可是为什么我的就是传不上去呢老是提示“The filetype you are attempting to upload is not allowed.”下面是源码:function do_upload()
{
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'rar|exe|doc|docx|gif|jpg|png';
$config['max_size'] = '10000';
$config['max_width']= '1024';
$config['max_height']= '768';
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
$error = array('error' => $this->upload->display_errors());
$this->load->view('upload_form', $error);
}
else
{
$data = array('upload_data' => $this->upload->data());
$this->load->view('upload_success', $data);
}
} 参考 FAQ 置顶帖,添加 mimes 即可。 可是exe已经在mimes有了啊
HEX大大~ CI 版本是? 1.7.2版的 换新版 CI 试试,这可能是个 BUG。 我知道了,不是BUG,是我浏览器的问题,我用IE或者火狐就没事,用谷歌就不行,还是非常感谢HEX大大
页:
[1]