[ACA-1894] - fixed missing behaviour for drag&drop (#5641)

This commit is contained in:
Vito
2020-04-24 22:39:44 +01:00
committed by GitHub
parent 697ce6e365
commit 444ebcdfd8
2 changed files with 11 additions and 2 deletions

View File

@@ -127,10 +127,11 @@ export class UploadService {
private isParentFolderAllowed(file: FileModel): boolean {
let isAllowed: boolean = true;
const currentFile: any = file.file;
if (currentFile && currentFile.webkitRelativePath) {
const fileRelativePath = currentFile.webkitRelativePath ? currentFile.webkitRelativePath : file.options.path;
if (currentFile && fileRelativePath) {
isAllowed =
this.excludedFoldersList.filter((folderToExclude) => {
return currentFile.webkitRelativePath
return fileRelativePath
.split('/')
.some((pathElement) => {
const minimatch = new Minimatch(folderToExclude, this.folderMatchingOptions);