diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-08-08 21:35:18 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-08-08 22:14:21 +0200 |
commit | 0ab885047867ba9b28514e5e4f93136e74837fe5 (patch) | |
tree | ebdf920b9709c7f67280706a5528f4f1d144a152 /apps/files/ajax/newfile.php | |
parent | 1ed049a6828149e00d424a3dac87b3d1b1777d6a (diff) | |
download | nextcloud-server-0ab885047867ba9b28514e5e4f93136e74837fe5.tar.gz nextcloud-server-0ab885047867ba9b28514e5e4f93136e74837fe5.zip |
Adjust JSON code to stable5.
Diffstat (limited to 'apps/files/ajax/newfile.php')
-rw-r--r-- | apps/files/ajax/newfile.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 22598ee78e1..46149c3e8bd 100644 --- a/apps/files/ajax/newfile.php +++ b/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(); } } |