From bc5a3594343ca6f082447a10d277130ffeb9c462 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 11 Oct 2019 21:44:15 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/storage.php b/system/storage.php index 4b92a5b..cfbeb6b 100644 --- a/system/storage.php +++ b/system/storage.php @@ -305,6 +305,10 @@ if(!check_function_exists("write_storage_file")) { $result = basename($result); } + if(array_key_equals("url", $options, true)) { + $result = sprintf("%s/%s", $upload_base_url, get_safe_path($filename)); + } + return $result; } }