MS-PDRLKVHCADMG\Administrator il y a 5 ans
Parent
commit
6b64f9dd90
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);