Open tricksta opened 5 years ago
by using processQueue() method. dropZone: any; @ViewChild(DropzoneComponent) componentRef?: DropzoneComponent; @ViewChild(DropzoneDirective) directiveRef?: DropzoneDirective;
ngAfterViewInit() { this.dropZone = this.componentRef.directiveRef.dropzone(); }
// If we want to processQueue(), we can do it by this.dropZone.processQueue();
processQueue function triggers only if I add second file to dropzone, then the previous file start upload process.
onUploadFile(args: any) { console.log('onUploadFile:', args); this.dropZone.processQueue(); }
why the second file doesn't trigger instantly or I am using wrong event ? Actually I am using (addedFile)="onUploadFile($event)"
The progress of uploading is stoped after onFilesDropped event. Is it possible the trigger the process and post files manually ? I am using the directive version.
TEMPLATE
COMPONENT
SCREENSHOT