Adjust JSON code to stable5.

This commit is contained in:
Andreas Fischer 2013-08-08 21:35:18 +02:00
parent 1ed049a682
commit 0ab8850478
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ if($source) {
if($success) {
$meta = \OC\Files\Filesystem::getFileInfo($target);
$id = $meta['fileid'];
OCP\JSON::success(array("data" => array('content'=>$content, 'id' => $id, 'mime' => $meta['mimetype'])));
$mime = $meta['mimetype'];
OCP\JSON::success(array("data" => array('mime'=>$mime, 'content'=>$content, 'id' => $id)));
exit();
}
}