Skip to content

Commit

Permalink
Update storage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Oct 11, 2019
1 parent 584dcbf commit bc5a359
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ function write_storage_file($data, $options=array()) {
$result = basename($result);
}

if(array_key_equals("url", $options, true)) {
$result = sprintf("%s/%s", $upload_base_url, get_safe_path($filename));
}

return $result;
}
}
Expand Down

0 comments on commit bc5a359

Please sign in to comment.