diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-08 22:36:05 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-08 22:36:05 +0100 |
commit | 5cc6635eb81a8d76c04ee040a791f51ebbe389ef (patch) | |
tree | cfe2caa4dc4d76075f9cad9b883f5d0e471db2ed /files | |
parent | ca6c500799ec13c433ca74b8caa80875084c4943 (diff) | |
download | nextcloud-server-5cc6635eb81a8d76c04ee040a791f51ebbe389ef.tar.gz nextcloud-server-5cc6635eb81a8d76c04ee040a791f51ebbe389ef.zip |
remove OC_Filesystem::fromUploadedFile
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/upload.php | 2 |
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]); } } |