Skip to content

Commit 9df718d

Browse files
ChristophWurstMorrisJobke
authored andcommitted
Do not prevent subfolder uploads if same file exists in current directory
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 7a4c0c6 commit 9df718d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/files/js/file-upload.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ OC.Uploader.prototype = _.extend({
644644
// no list to check against
645645
return true;
646646
}
647+
648+
// We cannot detect conflicts in other folders
649+
if (fileList.getCurrentDirectory() !== upload.getTargetFolder()) {
650+
return true;
651+
}
652+
647653
var fileInfo = fileList.findFile(file.name);
648654
if (fileInfo) {
649655
conflicts.push([

0 commit comments

Comments
 (0)