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 /lib/private/files | |
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 'lib/private/files')
-rw-r--r-- | lib/private/files/view.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 7977272ee1f..ddf8c3038be 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -617,21 +617,21 @@ class View { } public function fromTmpFile($tmpFile, $path) { - + if (Filesystem::isValidPath($path)) { - + // Get directory that the file is going into $file_path = \OC_User::getHome(\OC_User::getUser()) . '/files'.substr($path, 0, strrpos($path,'/')); - + // Create the directories if any if(empty($file_path) === false) { mkdir($file_path, 0770, true); } - + if (!$tmpFile) { debug_print_backtrace(); } - + $source = fopen($tmpFile, 'r'); if ($source) { $this->file_put_contents($path, $source); |