Skip to content

Commit 1346b90

Browse files
authored
fixed upload
1 parent ce41548 commit 1346b90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

application/controllers/Index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ public function buyAction() {
263263
public function uploadpicAction() {
264264
if (!empty($_FILES)) {
265265
$config = Yaf_Application::app()->getConfig()->upload->config->toArray();
266-
$ftpconfig = Yaf_Application::app()->getConfig()->ftp->config->toArray();
267-
$upload = new Upload($config, 'Ftp',$ftpconfig);
266+
$upload = new Upload($config);
268267
$info = $upload->upload();
269268
if (!$info) {// 上传错误提示错误信息
270269
echo $upload->getError();

0 commit comments

Comments
 (0)