Browse Source

API - /media/upload - add return value #6272

image.preview: string (url for small image)
pull/6482/head
root 2 years ago
committed by Hypolite Petovan
parent
commit
d331e4e6e3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      include/api.php

+ 3
- 2
include/api.php View File

@ -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);


Loading…
Cancel
Save