pull/141/head
icret 2023-03-11 01:44:42 +08:00
parent b4ec93208d
commit 30e18118e1
4 changed files with 7 additions and 7 deletions

View File

@ -193,6 +193,8 @@ if ($handle->uploaded) {
} }
/** 后续处理 */ /** 后续处理 */
// 上传至其他位置
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
// 使用fastcgi_finish_request操作 // 使用fastcgi_finish_request操作
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request(); if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
// 同IP上传日志 // 同IP上传日志
@ -205,8 +207,6 @@ if ($handle->uploaded) {
@water($handle->file_dst_pathname); @water($handle->file_dst_pathname);
// 压缩 // 压缩
@process_compress($handle->file_dst_pathname); @process_compress($handle->file_dst_pathname);
// 上传至其他位置
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
unset($handle); unset($handle);
} }

View File

@ -1829,8 +1829,8 @@ function any_upload($remoteFile = null, $localFile = null, $way = 'upload')
// 关闭FTP // 关闭FTP
$ftp->close(); $ftp->close();
// 是否删除本地文件 // FTP上传后是否删除本地文件
if ($config['ftped_del_local']) { if ($config['ftp_del_local']) {
@unlink($localFile); @unlink($localFile);
} }
} }

View File

@ -216,6 +216,8 @@ if ($handle->uploaded) {
} }
/** 后续处理 */ /** 后续处理 */
// 上传至其他位置
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
// 使用fastcgi_finish_request操作 // 使用fastcgi_finish_request操作
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request(); if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
// 同IP上传日志 // 同IP上传日志
@ -228,8 +230,6 @@ if ($handle->uploaded) {
@water($handle->file_dst_pathname); @water($handle->file_dst_pathname);
// 压缩 // 压缩
@process_compress($handle->file_dst_pathname); @process_compress($handle->file_dst_pathname);
// 上传至其他位置
// @any_upload($pathIMG, APP_ROOT . $pathIMG, 'upload');
unset($handle); unset($handle);
} }

View File

@ -22,7 +22,7 @@ $config=Array
'ftp_pasv'=>1, 'ftp_pasv'=>1,
'ftp_ssl'=>0, 'ftp_ssl'=>0,
'ftp_time'=>30, 'ftp_time'=>30,
'ftped_del_local'=>0, 'ftp_del_local'=>0,
'captcha'=>0, 'captcha'=>0,
'mustLogin'=>0, 'mustLogin'=>0,
'apiStatus'=>0, 'apiStatus'=>0,