We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce41548 commit 1346b90Copy full SHA for 1346b90
application/controllers/Index.php
@@ -263,8 +263,7 @@ public function buyAction() {
263
public function uploadpicAction() {
264
if (!empty($_FILES)) {
265
$config = Yaf_Application::app()->getConfig()->upload->config->toArray();
266
- $ftpconfig = Yaf_Application::app()->getConfig()->ftp->config->toArray();
267
- $upload = new Upload($config, 'Ftp',$ftpconfig);
+ $upload = new Upload($config);
268
$info = $upload->upload();
269
if (!$info) {// 上传错误提示错误信息
270
echo $upload->getError();
0 commit comments