|
@@ -63,8 +63,7 @@ class AdminEquipmentController extends AdminBaseController{ |
|
@@ -63,8 +63,7 @@ class AdminEquipmentController extends AdminBaseController{ |
63
|
|
63
|
|
64
|
public function batch_addPost(){
|
64
|
public function batch_addPost(){
|
65
|
//上传excel文件
|
65
|
//上传excel文件
|
66
|
- $file = $this->request->file('myfile');
|
|
|
67
|
- dump($file);
|
66
|
+ $file = $this->request->file('file');
|
68
|
//移到/public/uploads/excel/下
|
67
|
//移到/public/uploads/excel/下
|
69
|
$info = $file->move(ROOT_PATH.'public'.DS.'upload'.DS.'excel');
|
68
|
$info = $file->move(ROOT_PATH.'public'.DS.'upload'.DS.'excel');
|
70
|
//上传文件成功
|
69
|
//上传文件成功
|