diff --git a/apps/contacts/ajax/uploadphoto.php b/apps/contacts/ajax/uploadphoto.php index 4cd38db8c7..7ec82603b4 100644 --- a/apps/contacts/ajax/uploadphoto.php +++ b/apps/contacts/ajax/uploadphoto.php @@ -50,9 +50,9 @@ if ($fn) { if(OC_Cache::set($tmpkey, $image->data(), 600)) { OCP\JSON::success(array( 'data' => array( - 'mime'=>$_SERVER['CONTENT_TYPE'], - 'name'=>$fn, - 'id'=>$id, + 'mime'=>$_SERVER['CONTENT_TYPE'], + 'name'=>$fn, + 'id'=>$id, 'tmp'=>$tmpkey))); exit(); } else { @@ -100,8 +100,8 @@ if(file_exists($file['tmp_name'])) { 'data' => array( 'mime'=>$file['type'], 'size'=>$file['size'], - 'name'=>$file['name'], - 'id'=>$_POST['id'], + 'name'=>$file['name'], + 'id'=>$_POST['id'], 'tmp'=>$tmpkey, ))); exit();