diff --git a/api/index.php b/api/index.php index 33a9504..d872375 100755 --- a/api/index.php +++ b/api/index.php @@ -193,6 +193,8 @@ if ($handle->uploaded) { } /** 后续处理 */ + // 上传至其他位置 + // @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload'); // 使用fastcgi_finish_request操作 if (function_exists('fastcgi_finish_request')) fastcgi_finish_request(); // 同IP上传日志 @@ -205,8 +207,6 @@ if ($handle->uploaded) { @water($handle->file_dst_pathname); // 压缩 @process_compress($handle->file_dst_pathname); - // 上传至其他位置 - // @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload'); unset($handle); } diff --git a/app/function.php b/app/function.php index 1fd4793..c0cd76b 100644 --- a/app/function.php +++ b/app/function.php @@ -1829,8 +1829,8 @@ function any_upload($remoteFile = null, $localFile = null, $way = 'upload') // 关闭FTP $ftp->close(); - // 是否删除本地文件 - if ($config['ftped_del_local']) { + // FTP上传后是否删除本地文件 + if ($config['ftp_del_local']) { @unlink($localFile); } } diff --git a/app/upload.php b/app/upload.php index 68b4d71..269865b 100644 --- a/app/upload.php +++ b/app/upload.php @@ -216,6 +216,8 @@ if ($handle->uploaded) { } /** 后续处理 */ + // 上传至其他位置 + // @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload'); // 使用fastcgi_finish_request操作 if (function_exists('fastcgi_finish_request')) fastcgi_finish_request(); // 同IP上传日志 @@ -228,8 +230,6 @@ if ($handle->uploaded) { @water($handle->file_dst_pathname); // 压缩 @process_compress($handle->file_dst_pathname); - // 上传至其他位置 - // @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload'); unset($handle); } diff --git a/config/config.php b/config/config.php index 789a59c..3fa79a6 100755 --- a/config/config.php +++ b/config/config.php @@ -22,7 +22,7 @@ $config=Array 'ftp_pasv'=>1, 'ftp_ssl'=>0, 'ftp_time'=>30, - 'ftped_del_local'=>0, + 'ftp_del_local'=>0, 'captcha'=>0, 'mustLogin'=>0, 'apiStatus'=>0,