From 18aa851e5f81fcfc1b34d43801976bda0ca4e1a5 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 3 Sep 2018 01:00:05 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/storage.php b/system/storage.php index 80904a5..bd9835d 100644 --- a/system/storage.php +++ b/system/storage.php @@ -158,6 +158,9 @@ if(!function_exists("write_storage_file")) { $result = $upload_filename; } else { $result = write_storage_file($data, $options); + if(array_key_equals("basename", $options, true)) { + $result = basename($result); + } } } else { if($mode == "fake") {