Link pic & post

This commit is contained in:
2019-11-01 23:12:32 +01:00
parent 584accc72e
commit 1ed68c866f
20 changed files with 153 additions and 1437 deletions

View File

@@ -42,6 +42,10 @@ class Uploader extends UploadHandler
if(empty($file->error)) {
$asResult = $this->oMedia->addMedia($file->name);
if(!$asResult['result']) $file->error = $this->get_error_message($asResult['desc'], $asResult['data']);
else {
$file->id = $this->oMedia->getMediaId();
$file->thumbnail = $asResult['data']['thumb_path'];
}
}
return $file;