Fix Upload TypeError #10877
Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
parent
88596cb852
commit
d3b4521668
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ function upload_complete(&$image) {
|
|||
"size" => $image->getLocalFile()->size, //in bytes, e.g. 2412586
|
||||
"user_id" => $image->getLocalFile()->getUser('id'), // int userId
|
||||
"user_text" => $image->getLocalFile()->getUser('text'), // the username
|
||||
"description" => $image->getLocalFile()->getDescriptionText(),
|
||||
"description" => $image->getLocalFile()->getDescriptionText(new Language()),
|
||||
"url" => $image->getLocalFile()->url, // gives the relavive url for direct access of the uploaded media
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue