文件上传问题(excel)???
$config['upload_path'] = $upload_path;$config['allowed_types'] = 'xls|xlsx';
$config['overwrite'] = false;
$config['encrypt_name'] = true;
$config['max_size'] = '2048';
$config['remove_spaces'] = true;
$this->load->library('upload', $config);
上传文件名是20121106.xls,怎么会提示The filetype you are attempting to upload is not allowed.求解
请检查 application\config\mimes.php
文件第32行左右本身自带有 xls设置
但是没有你配置时候给定的xlsx
可以复制 xls 一行 添加在下面 thx,已经解决了
页:
[1]