diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-15 19:56:15 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-15 19:56:15 +0200 |
commit | f06c08a63742de9adea4a146a4480b71ad254f20 (patch) | |
tree | 6607d1fc4d31c33190914fb373c9f6e0a526da63 /apps/files | |
parent | a9a424a51982396943e9c3353c0c36f289dd41ba (diff) | |
download | nextcloud-server-f06c08a63742de9adea4a146a4480b71ad254f20.tar.gz nextcloud-server-f06c08a63742de9adea4a146a4480b71ad254f20.zip |
cleanup oc_filecache, splitting it in several parts and using the new hasUpdated
Diffstat (limited to 'apps/files')
-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 d6c799af32c..b779924cfb4 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -48,7 +48,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::getCached($target); + $meta=OC_FileCache_Cached::get($target); $result[]=array( "status" => "success", 'mime'=>$meta['mimetype'],'size'=>$meta['size'],'name'=>basename($target)); } } |