summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheSFReader <TheSFReader@gmail.com>2013-02-01 20:29:02 +0100
committerTheSFReader <TheSFReader@gmail.com>2013-02-01 20:29:02 +0100
commit469b1e8dd2943f35253761dfeeadedf628aea878 (patch)
tree7f96b3da9e015e260690ed424b63b5f40f1ef64c
parent5bf7791b4212c6dba2ce7289841c71f8177cfa3f (diff)
downloadnextcloud-server-469b1e8dd2943f35253761dfeeadedf628aea878.tar.gz
nextcloud-server-469b1e8dd2943f35253761dfeeadedf628aea878.zip
Correct it
-rw-r--r--apps/files/ajax/upload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 9ecc1a6c2f4..676612c0e42 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -10,6 +10,8 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$l = OC_L10N::get('files');
+
+$dir = $_POST['dir'];
// get array with current storage stats (e.g. max file size)
$storageStats = \OCA\files\lib\Helper::buildFileStorageStatistics($dir);
@@ -37,7 +39,6 @@ foreach ($_FILES['files']['error'] as $error) {
}
$files = $_FILES['files'];
-$dir = $_POST['dir'];
$error = '';
$maxUploadFilesize = OCP\Util::maxUploadFilesize($dir);