Skip to content

Commit

Permalink
fixed upload
Browse files Browse the repository at this point in the history
  • Loading branch information
qieangel2013 authored May 5, 2017
1 parent ce41548 commit 1346b90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1346b90

Please sign in to comment.