summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/newfile.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-08-08 21:35:18 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-08-08 22:14:21 +0200
commit0ab885047867ba9b28514e5e4f93136e74837fe5 (patch)
treeebdf920b9709c7f67280706a5528f4f1d144a152 /apps/files/ajax/newfile.php
parent1ed049a6828149e00d424a3dac87b3d1b1777d6a (diff)
downloadnextcloud-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.php3
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();
}
}