Open dineshmaths1 opened 4 years ago
it's not a good way but solved my problem:
@ViewChild("drzRef", { static: false }) myDropZone: ElementRef;
onDrop(event) {
event.preventDefault();
const url ='someUrl' + myfileName;
this.myDropZone.directiveRef.instance.options.url = url;
}
<dropzone #drz [config]="DEFAULT_DROPZONE_CONFIG" [message]="''"
(error)="onUploadError($event)"
(success)="onUploadSuccess($event)"
(drop)="onDrop($event)"
(queueComplete)="queueComplete()"
(processing)="onProcessing($event)"
>
hii i want to pass upload file name as parameter like {filename:'1.png'}