more work on media uploads via api

This commit is contained in:
redmatrix
2015-12-17 16:22:13 -08:00
parent 539d06f02d
commit 62a60e5542
2 changed files with 26 additions and 8 deletions

View File

@@ -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') {