how to pass filename on parameter
dineshmaths1 opened this issue · comments
dineshmaths1 commented
hii i want to pass upload file name as parameter like
{filename:'1.png'}
Mohsen commented
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)"
>