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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

150031 Dec 18,2019 11:39 AM UTC Dec 19,2019 11:12 AM UTC Angular - EJ 2 1
loading
Tags: Uploader
Sara Sultan
Asked On December 18, 2019 11:39 AM UTC

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

Sureshkumar P [Syncfusion]
Replied On 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  
 
Regards, 
Sureshkumar P 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon