API - /media/upload - add return value #6272
image.preview: string (url for small image)
This commit is contained in:
parent
8addcf9844
commit
d331e4e6e3
1 changed files with 3 additions and 2 deletions
|
@ -1243,7 +1243,8 @@ function api_media_upload()
|
||||||
$returndata["size"] = $media["size"];
|
$returndata["size"] = $media["size"];
|
||||||
$returndata["image"] = ["w" => $media["width"],
|
$returndata["image"] = ["w" => $media["width"],
|
||||||
"h" => $media["height"],
|
"h" => $media["height"],
|
||||||
"image_type" => $media["type"]];
|
"image_type" => $media["type"],
|
||||||
|
"preview" => $media["preview"]];
|
||||||
|
|
||||||
Logger::log("Media uploaded: " . print_r($returndata, true), Logger::DEBUG);
|
Logger::log("Media uploaded: " . print_r($returndata, true), Logger::DEBUG);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue