作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

cost

@@ -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 //上传文件成功
@@ -41,8 +41,7 @@ @@ -41,8 +41,7 @@
41 <tr> 41 <tr>
42 <th width="80">上传文件<span class="form-required">*</span></th> 42 <th width="80">上传文件<span class="form-required">*</span></th>
43 <td> 43 <td>
44 - <input class="form-control" type="file" name="myfile"  
45 - id="myfile"/> 44 + <input class="form-control" type="file" name="file" id="file"/>
46 </td> 45 </td>
47 </tr> 46 </tr>
48 47