summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 01:17:34 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 01:17:34 +0200
commit8a5d1ffebe8eb077b43df042314013143698b499 (patch)
treed4a9f73fdc67523dc57295123248b4e8f9c15751 /files
parent85a6097c03abc8eb2b7a4e74a421c0da82297628 (diff)
downloadnextcloud-server-8a5d1ffebe8eb077b43df042314013143698b499.tar.gz
nextcloud-server-8a5d1ffebe8eb077b43df042314013143698b499.zip
fix that might solve strange uploading issues
Diffstat (limited to 'files')
-rw-r--r--files/ajax/upload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index 79b6c0b284c..a1b41d6ba23 100644
--- a/files/ajax/upload.php
+++ b/files/ajax/upload.php
@@ -21,7 +21,8 @@ if(!empty($dir)) $dir .= '/';
$target='/' . stripslashes($dir) . $fileName;
if(isset($_SESSION['username'])
and $_SESSION['username'] and strpos($dir,'..') === false){
- if(OC_FILESYSTEM::fromTmpFile($source,$target)){
+ if(OC_FILESYSTEM::fromUploadedFile($source,$target)){
+// if(OC_FILES::move(dirname($source),basename($source), $dir, $fileName)){
echo json_encode(array( "status" => "success"));
exit();
}