aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-14 17:39:33 -0800
committerzotlabs <mike@macgirvin.com>2017-11-14 17:39:33 -0800
commit8e534918672c2ccf3614623b8bd368d18318f453 (patch)
tree10af0a71d36279b4349d3d8afc3ba3be3f25b48b /include/attach.php
parent3c3c0ed34269cecdbda1288eab5b63c664a8859c (diff)
downloadvolse-hubzilla-8e534918672c2ccf3614623b8bd368d18318f453.tar.gz
volse-hubzilla-8e534918672c2ccf3614623b8bd368d18318f453.tar.bz2
volse-hubzilla-8e534918672c2ccf3614623b8bd368d18318f453.zip
sort out a few more large image upload issues
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index 2bb57722b..96b9c0b44 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -588,6 +588,12 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$def_extension = '.png';
}
+ // If we know it's a photo, over-ride the type in case the source system could not determine what it was
+
+ if($is_photo) {
+ $type = $gis['mime'];
+ }
+
$pathname = '';
if($is_photo) {