From fae9c236371ba70b2ac7624d6020c76a77c1944d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 3 Nov 2017 14:20:49 -0700 Subject: imagedata not set correctly if large photo AND imagick is not installed --- include/photos.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/photos.php b/include/photos.php index 5de68f162..503a725cd 100644 --- a/include/photos.php +++ b/include/photos.php @@ -75,6 +75,9 @@ function photo_upload($channel, $observer, $args) { $imagedata = @file_get_contents($tmp_name); @unlink($tmp_name); } + else { + $imagedata = @file_get_contents($args['os_syspath']); + } } else { $imagedata = @file_get_contents($args['os_syspath']); -- cgit v1.2.3