diff --git a/app/Models/FileContent.php b/app/Models/FileContent.php index 8f183ff93..65c0b12b1 100644 --- a/app/Models/FileContent.php +++ b/app/Models/FileContent.php @@ -74,7 +74,7 @@ class FileContent extends AbstractModel $content['preview'] = false; if ($content['ext'] && !in_array($content['ext'], ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'])) { $url = 'http://' . env('APP_IPPR') . '.3/' . $content['url']; - if ($type == 'image') { + if (in_array($type, ['picture', 'image', 'tif', 'media'])) { $url = Base::fillUrl($content['url']); } $content['url'] = base64_encode($url);