diff --git a/packages/file-handling/src/file-source.js b/packages/file-handling/src/file-source.js index 3c0cae5f608a48a1d3402c57aa36921ff03bf389..984a6146437574a40d5e709f3619bacc97692570 100644 --- a/packages/file-handling/src/file-source.js +++ b/packages/file-handling/src/file-source.js @@ -235,7 +235,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) { } else if (this.allowedMimeTypes && !this.checkFileType(file) ) { return; } -console.log("huiiii"); + await this.sendFileEvent(file, fileCount); }); @@ -247,7 +247,8 @@ console.log("huiiii"); } /** - * @param file, last + * @param file + * @param maxUpload */ sendFileEvent(file, maxUpload) { this.sendSource(); @@ -259,7 +260,7 @@ console.log("huiiii"); sendSource() { let data = {}; - if (this.activeTarget == 'nextcloud') { + if (this.activeTarget === 'nextcloud') { data = {"target": this.activeTarget, "path": this._("#nextcloud-file-picker").directoryPath}; } else { data = {"target": this.activeTarget};