MS-PDRLKVHCADMG\Administrator hace 5 años
padre
commit
6b64f9dd90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/application/controllers/Base_Controller.php

+ 1 - 1
api/application/controllers/Base_Controller.php

@@ -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);