We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

what is the action of onFileChange of Uploader like in input Type File

Use Uploader with ngx-image-cropper 
I have uploader component instead of input File
i wanna use ngx-image-cropper  and it needs event of Onchange of Input Browsa
How I can get the event onchange  of Uploader like we do with input tag to make ngx-image-cropper work

1 Reply

SP Sureshkumar P Syncfusion Team December 19, 2019 11:12 AM UTC

Hi Sara, 
Greetings from Syncfusion support. 
Yes, we can bind the change event in our uploader component as like below. 
Kindly refer the below code block. 
<ejs-uploader #defaultupload (change)="OnChange($event)" id='defaultfileupload' [asyncSettings]='path' 
                [dropArea]='dropElement' (removing)='onFileRemove($event)'></ejs-uploader> 
We have created a sample based on your requirement. please find the sample here: https://stackblitz.com/edit/angular-tunieo?file=app.component.html  
Sureshkumar P 

Live Chat Icon For mobile
Up arrow icon