|
@@ -164,7 +164,7 @@ class Base_Controller extends CI_Controller {
|
|
|
}
|
|
|
$config['upload_path'] = $path.'/'; // 设置文件上传路径
|
|
|
$config['file_name'] = date('YmdHis',time()); // 设置文件上传路径
|
|
|
- $config['allowed_types'] = 'xls|xlsx'; // 设置文件上传格式
|
|
|
+ $config['allowed_types'] = '*'; // 设置文件上传格式
|
|
|
$config['max_size'] = 1024*2; // 设置文件上传大小
|
|
|
|
|
|
$this->load->library('upload', $config);
|