From 1346b906647606b6fec73491eb2d6eae6a4596f8 Mon Sep 17 00:00:00 2001 From: Qiufang Zhang <904208360@qq.com> Date: Fri, 5 May 2017 13:51:59 +0800 Subject: [PATCH] fixed upload --- application/controllers/Index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/controllers/Index.php b/application/controllers/Index.php index 43e0321..256178e 100644 --- a/application/controllers/Index.php +++ b/application/controllers/Index.php @@ -263,8 +263,7 @@ public function buyAction() { public function uploadpicAction() { if (!empty($_FILES)) { $config = Yaf_Application::app()->getConfig()->upload->config->toArray(); - $ftpconfig = Yaf_Application::app()->getConfig()->ftp->config->toArray(); - $upload = new Upload($config, 'Ftp',$ftpconfig); + $upload = new Upload($config); $info = $upload->upload(); if (!$info) {// 上传错误提示错误信息 echo $upload->getError();