mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-1894] - fixed missing behaviour for drag&drop (#5641)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user