From 40641472775fc445edc3fda8221fde0a0e0d9146 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 3 Sep 2018 10:16:03 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/storage.php b/system/storage.php index 705fe1e..936691b 100644 --- a/system/storage.php +++ b/system/storage.php @@ -146,6 +146,14 @@ if(!function_exists("remove_storage_file")) { $upload_filename = $upload_base_path . "/" . $filename; if(file_exists($upload_filename)) { + if(!array_key_empty("chmod", $options)) { + @chmod($upload_filename, $options['chmod']); + } + + if(!array_key_empty("chown", $options)) { + @chown($upload_filename, $options['chown']); + } + if(!array_key_empty("shell", $options)) { if(loadHelper("exectool")) { $exec_cmd = ($options['shell'] == "windows") ? "del '%s'" : "rm -f '%s'";