Skip to content

Commit

Permalink
Don't check subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
pjft authored Aug 10, 2021
1 parent df7ca18 commit 8417f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ OC.Uploader.prototype = _.extend({
// only keep non-conflicting uploads
selection.uploads = _.filter(selection.uploads, function(upload) {
var file = upload.getFile();
if (file.relativePath) {
if (file.relativePath || upload.getTargetFolder() != fileList.getCurrentDirectory()) {
// can't check in subfolder contents
return true;
}
Expand Down

0 comments on commit 8417f44

Please sign in to comment.