Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not prevent subfolder uploads if same file exists in current direc…
…tory

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst authored and MorrisJobke committed Oct 27, 2017
commit 9df718d058735344f69b82dcd7d210b201d04af5
6 changes: 6 additions & 0 deletions apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,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