Update storage.php

This commit is contained in:
Namhyeon Go 2020-05-04 23:53:15 +09:00 committed by GitHub
parent d9802557a6
commit ed02dd066f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,12 +70,12 @@ if(!is_fn("get_storage_path")) {
if(!is_fn("get_storage_url")) {
function get_storage_url($type="data") {
return sprintf("%s%s/%s", base_url(), get_storage_dir(), get_safe_path($type));
return sprintf("%s/%s/%s", base_url(), get_storage_dir(), get_safe_path($type));
}
}
if(!is_fn("move_uploaded_file_to_storage")) {
function move_uploaded_file_to_stroage($options=array()) {
if(!is_fn("allocate_uploaded_files")) {
function allocate_uploaded_files($options=array()) {
$response = array(
"files" => array()
);