From 8662c3e46b68c61be060a9be279c98eb42ce06dd Mon Sep 17 00:00:00 2001 From: wuhao <15392746632@qq.com> Date: Thu, 3 Dec 2020 20:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uploader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uploader.php b/uploader.php index 7a8e0c3..73c96f1 100644 --- a/uploader.php +++ b/uploader.php @@ -4,6 +4,7 @@ $fileData = array(); $cardId = r('id'); $act = r('act'); if ($act == 'add') { + print_r($fujian); foreach ($fujian['name'] as $idx => $data) { if ($fujian['error'][$idx] == 0) { $id = uniqid() . $idx; @@ -18,7 +19,7 @@ if ($act == 'add') { "bumen" => r('bumen'), "file" => $newName ); - rename($fujian['tmp_name'][$idx], $newName); + rename($fujian['tmp_name'][$idx], '.'.$newName); } }