From 6e48c365191e750941b5a9839ba9940242c9f313 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 3 Nov 2017 14:20:49 -0700 Subject: [PATCH] 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']);