diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-12 17:00:25 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-12 17:00:46 -0400 |
commit | 87b7a236486394c9224b25ada0814ca9dc0406fd (patch) | |
tree | f979ee5347edff12833d8703195d8dcceeb06aa4 /apps | |
parent | 9bfdf47cd43139ca5c3fba255fd4486d06b6d72c (diff) | |
download | nextcloud-server-87b7a236486394c9224b25ada0814ca9dc0406fd.tar.gz nextcloud-server-87b7a236486394c9224b25ada0814ca9dc0406fd.zip |
Don't get metadata directly from the 'cached' file cache after upload
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/ajax/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 7709becc6a8..fb3e277a215 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -49,7 +49,7 @@ if(strpos($dir, '..') === false) { for($i=0;$i<$fileCount;$i++) { $target = OCP\Files::buildNotExistingFileName(stripslashes($dir), $files['name'][$i]); if(is_uploaded_file($files['tmp_name'][$i]) and OC_Filesystem::fromTmpFile($files['tmp_name'][$i], $target)) { - $meta=OC_FileCache_Cached::get($target); + $meta = OC_FileCache::get($target); $result[]=array( "status" => "success", 'mime'=>$meta['mimetype'],'size'=>$meta['size'],'name'=>basename($target)); } } |