From b27efea71b302ec10f5ee8690cd851182d3aebb8 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 13 May 2018 01:08:48 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/storage.php b/system/storage.php index 5c881ec..5c2523a 100644 --- a/system/storage.php +++ b/system/storage.php @@ -135,9 +135,9 @@ if(!function_exists("write_storage_file")) { // if set rename option if(in_array("rename", $options)) { - $rename_to = $upload_base_path . "/" $options['rename']; - if(rename($result, $rename_to)) { - $result = $rename_to; + $upload_rename_to = $upload_base_path . "/" $options['rename']; + if(rename($upload_filename, $upload_rename_to)) { + $result = $upload_rename_to; } } } else {