diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/ajax/newfile.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 46149c3e8bd..8c1aad8668c 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -87,7 +87,11 @@ if($source) { $meta = \OC\Files\Filesystem::getFileInfo($target); $id = $meta['fileid']; $mime = $meta['mimetype']; - OCP\JSON::success(array("data" => array('mime'=>$mime, 'content'=>$content, 'id' => $id))); + OCP\JSON::success(array('data' => array( + 'id' => $id, + 'mime' => $mime, + 'content' => $content, + ))); exit(); } } |