aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-01-29 15:44:21 +0100
committerGitHub <noreply@github.com>2019-01-29 15:44:21 +0100
commit050b9135d50f57c777c157bb7aa8c102524b2c77 (patch)
treed3085793661d511af25d06daf3c50e4975fb199b /apps/files/js/file-upload.js
parent754932c7569f61fddd152151fcdcae6dbce9e834 (diff)
parent038e665db98ec065bcca6c30c2326362cde0aae8 (diff)
downloadnextcloud-server-050b9135d50f57c777c157bb7aa8c102524b2c77.tar.gz
nextcloud-server-050b9135d50f57c777c157bb7aa8c102524b2c77.zip
Merge pull request #13883 from nextcloud/fix-dropping-a-folder-on-a-folder-row
Fix dropping a folder on a folder row
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 9f1912d590d..79d266a300b 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -523,7 +523,9 @@ OC.Uploader.prototype = _.extend({
self.filesClient.createDirectory(fullPath).always(function(status) {
// 405 is expected if the folder already exists
if ((status >= 200 && status < 300) || status === 405) {
- self.trigger('createdfolder', fullPath);
+ if (status !== 405) {
+ self.trigger('createdfolder', fullPath);
+ }
deferred.resolve();
return;
}