]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't get metadata directly from the 'cached' file cache after upload
authorMichael Gapczynski <mtgap@owncloud.com>
Wed, 12 Sep 2012 21:00:25 +0000 (17:00 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Wed, 12 Sep 2012 21:00:46 +0000 (17:00 -0400)
apps/files/ajax/upload.php

index 7709becc6a8952c6be7b86920b855c4949a58ee3..fb3e277a2151ff1769017c48f3812f28787dec89 100644 (file)
@@ -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));
                }
        }