From 62a60e554235c66c88955d16134c874ad560bf72 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 17 Dec 2015 16:22:13 -0800 Subject: more work on media uploads via api --- include/attach.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/attach.php') diff --git a/include/attach.php b/include/attach.php index 20e8b7444..8595d5d86 100644 --- a/include/attach.php +++ b/include/attach.php @@ -503,6 +503,10 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { } } + // AndStatus sends jpegs with a non-standard mimetype + if($type === 'image/jpg') + $type = 'image/jpeg'; + $existing_size = 0; if($options === 'replace') { -- cgit v1.2.3