Adjust JSON code to stable5.
This commit is contained in:
parent
1ed049a682
commit
0ab8850478
|
@ -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…
Reference in New Issue