Adjust JSON code to stable5.

remotes/origin/stable6
Andreas Fischer 13 years ago
parent 1ed049a682
commit 0ab8850478
  1. 3
      apps/files/ajax/newfile.php

@ -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();
}
}

Loading…
Cancel
Save