aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-08 22:36:05 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-08 22:36:05 +0100
commit5cc6635eb81a8d76c04ee040a791f51ebbe389ef (patch)
treecfe2caa4dc4d76075f9cad9b883f5d0e471db2ed /files
parentca6c500799ec13c433ca74b8caa80875084c4943 (diff)
downloadnextcloud-server-5cc6635eb81a8d76c04ee040a791f51ebbe389ef.tar.gz
nextcloud-server-5cc6635eb81a8d76c04ee040a791f51ebbe389ef.zip
remove OC_Filesystem::fromUploadedFile
Diffstat (limited to 'files')
-rw-r--r--files/ajax/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index 041ec0c92e3..d9dafde7779 100644
--- a/files/ajax/upload.php
+++ b/files/ajax/upload.php
@@ -46,7 +46,7 @@ if(strpos($dir,'..') === false){
$fileCount=count($files['name']);
for($i=0;$i<$fileCount;$i++){
$target=stripslashes($dir) . $files['name'][$i];
- if(OC_Filesystem::fromUploadedFile($files['tmp_name'][$i],$target)){
+ if(is_uploaded_file($files['tmp_name'][$i]) and OC_Filesystem::fromTmpFile($files['tmp_name'][$i],$target)){
$result[]=array( "status" => "success", 'mime'=>OC_Filesystem::getMimeType($target),'size'=>OC_Filesystem::filesize($target),'name'=>$files['name'][$i]);
}
}