diff options
author | Luke Policinski <lpolicinski@gmail.com> | 2014-02-19 21:28:32 +0000 |
---|---|---|
committer | Luke Policinski <lpolicinski@gmail.com> | 2014-02-19 21:28:32 +0000 |
commit | b01492fecd5019a09cd7b1265a9cef43fc42616f (patch) | |
tree | 990ee253e5ba96b4fafd56afbbc42686e11e056e /apps/files/ajax/upload.php | |
parent | 79a6d89bccf4c5d4ce934c88bc544988c47b8e98 (diff) | |
download | nextcloud-server-b01492fecd5019a09cd7b1265a9cef43fc42616f.tar.gz nextcloud-server-b01492fecd5019a09cd7b1265a9cef43fc42616f.zip |
Feature Added : Ability to drag and drop in Chrome
Diffstat (limited to 'apps/files/ajax/upload.php')
-rw-r--r-- | apps/files/ajax/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index b2aa7a99200..d189386e051 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -107,12 +107,12 @@ $directory = ''; if (strpos($dir, '..') === false) { $fileCount = count($files['name']); for ($i = 0; $i < $fileCount; $i++) { - + // Get the files directory if(isset($_POST['file_directory']) === true) { $directory = '/'.$_POST['file_directory']; } - + // $path needs to be normalized - this failed within drag'n'drop upload to a sub-folder if (isset($_POST['resolution']) && $_POST['resolution']==='autorename') { // append a number in brackets like 'filename (2).ext' |