Closed uru closed 6 years ago
@uru You can get URL with getContentUrl
.
function smallImage($cmd, &$result, $args, $elfinder, $volume) {
if (!empty($result['added'])) {
foreach($result['added'] as $i => $f) {
if (empty($f['url'])) {
$result['added'][$i]['url'] = $volume->getContentUrl($f['hash']);
}
}
}
}
Thank you @nao-pon, The important point is $volume->getContentUrl()
function 👍
Hi, I have a callback function that works with uploading and pasting from Bind actions.
With this callback function, I automatically generate many different sizes of the uploaded image. While doing this, I find the path of the image with the
url
parameter in the$result
variable. But the paste action that works with Drag&Drop has no url parameter in the$result
variable. How can I get the path of an image that is copied and pasted?