Skip to content

Commit

Permalink
Do not prevent subfolder uploads if same file exists in current direc…
Browse files Browse the repository at this point in the history
…tory

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Mar 13, 2017
1 parent f7cef9f commit 892660d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,12 @@ OC.Uploader.prototype = _.extend({
// no list to check against
return true;
}

// We cannot detect conflicts in other folders
if (fileList.getCurrentDirectory() !== upload.getTargetFolder()) {
return true;
}

var fileInfo = fileList.findFile(file.name);
if (fileInfo) {
conflicts.push([
Expand Down

0 comments on commit 892660d

Please sign in to comment.