summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/upload.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-26 23:05:02 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-26 23:05:02 +0200
commit6db81afab9d68ccd50c1e164622252e47ae76c2f (patch)
treed4ae92ab7ee21805e52a29e4099daeb4649ca79e /apps/files/ajax/upload.php
parent4b616764e825022e9394a4cb26af2012276285b4 (diff)
downloadnextcloud-server-6db81afab9d68ccd50c1e164622252e47ae76c2f.tar.gz
nextcloud-server-6db81afab9d68ccd50c1e164622252e47ae76c2f.zip
move some stuff to the new api
Diffstat (limited to 'apps/files/ajax/upload.php')
-rw-r--r--apps/files/ajax/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index b6b8c7f7b46..2a784d61691 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\Files\Filesystem::fromTmpFile($files['tmp_name'][$i], $target)) {
- $meta = \OC_Files::getFileInfo($target);
+ $meta = \OC\Files\Filesystem::getFileInfo($target);
$id = $meta['fileid'];
$result[]=array( "status" => "success", 'mime'=>$meta['mimetype'],'size'=>$meta['size'], 'id'=>$id, 'name'=>basename($target));
}