Fix Upload TypeError #10877

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2023-01-17 17:28:15 -03:00 committed by kevin
parent 88596cb852
commit d3b4521668

View file

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