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

cost

... ... @@ -63,8 +63,7 @@ class AdminEquipmentController extends AdminBaseController{
public function batch_addPost(){
//上传excel文件
$file = $this->request->file('myfile');
dump($file);
$file = $this->request->file('file');
//移到/public/uploads/excel/下
$info = $file->move(ROOT_PATH.'public'.DS.'upload'.DS.'excel');
//上传文件成功
... ...
... ... @@ -41,8 +41,7 @@
<tr>
<th width="80">上传文件<span class="form-required">*</span></th>
<td>
<input class="form-control" type="file" name="myfile"
id="myfile"/>
<input class="form-control" type="file" name="file" id="file"/>
</td>
</tr>
... ...