diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:31:27 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:31:27 +0200 |
commit | 57f7ff2dbdbef977483c0078048181ea1b7630f2 (patch) | |
tree | 05f05544a7a73d0d46fcdeb6667433471bf1fc40 /apps/files/ajax | |
parent | 7279a07ca20949cf3cee82faf064d6aae8cf0a99 (diff) | |
download | nextcloud-server-57f7ff2dbdbef977483c0078048181ea1b7630f2.tar.gz nextcloud-server-57f7ff2dbdbef977483c0078048181ea1b7630f2.zip |
communicate size of newly created file back and update UI
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/newfile.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 8f5b1d98c3e..d224e79d01b 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -93,9 +93,11 @@ if($source) { $meta = \OC\Files\Filesystem::getFileInfo($target); $id = $meta['fileid']; $mime = $meta['mimetype']; + $size = $meta['size']; OCP\JSON::success(array('data' => array( 'id' => $id, 'mime' => $mime, + 'size' => $size, 'content' => $content, ))); exit(); |