]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust JSON code to stable5.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 8 Aug 2013 19:35:18 +0000 (21:35 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Thu, 8 Aug 2013 20:14:21 +0000 (22:14 +0200)
apps/files/ajax/newfile.php

index 22598ee78e150fe6caa88af9d5c3e87937ecd4ad..46149c3e8bd3021dcc3018ed691e393a2385882f 100644 (file)
@@ -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();
        }
 }