diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:20:45 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:20:45 +0200 |
commit | 93b63cf3755d3f1295c976c308b81c6340883abb (patch) | |
tree | 8e8a7413ea75723b7d21e18661a10842d1970bf1 /apps/files/ajax/upload.php | |
parent | e48f511606a1ef64aa39099055dd6ae437f45d03 (diff) | |
download | nextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.tar.gz nextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.zip |
ported the rest of the OC_Helper calls
Diffstat (limited to 'apps/files/ajax/upload.php')
-rwxr-xr-x[-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 3ac8ef59560..c50f6233a46 100644..100755 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -46,7 +46,7 @@ $result=array(); if(strpos($dir,'..') === false){ $fileCount=count($files['name']); for($i=0;$i<$fileCount;$i++){ - $target = OC_Helper::buildNotExistingFileName(stripslashes($dir), $files['name'][$i]); + $target = OCP\Util::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); $result[]=array( "status" => "success", 'mime'=>$meta['mimetype'],'size'=>$meta['size'],'name'=>basename($target)); |