From d331e4e6e3c68dd35ae7aa0844595bbf4bab5628 Mon Sep 17 00:00:00 2001 From: root <17hado.com@gmail.com> Date: Sat, 15 Dec 2018 20:15:55 +0000 Subject: [PATCH] API - /media/upload - add return value #6272 image.preview: string (url for small image) --- include/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index 9c18441103..8a89d00d77 100644 --- a/include/api.php +++ b/include/api.php @@ -1242,8 +1242,9 @@ function api_media_upload() $returndata["media_id_string"] = (string)$media["id"]; $returndata["size"] = $media["size"]; $returndata["image"] = ["w" => $media["width"], - "h" => $media["height"], - "image_type" => $media["type"]]; + "h" => $media["height"], + "image_type" => $media["type"], + "preview" => $media["preview"]]; Logger::log("Media uploaded: " . print_r($returndata, true), Logger::DEBUG); -- 2.39.5