Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i upload a image and image uploaded successfully. Now i want to upload another image without clicking on cross icon on top right. #200

Open
jitendra-kr opened this issue May 11, 2018 · 1 comment

Comments

@jitendra-kr
Copy link

Hi, I am trying to upload another image when my first image uploaded successfully but it is not allowing me to upload another image until i am not clearing image preview by clicking on cross icon on top right side.

@chris-hmmr
Copy link

chris-hmmr commented May 21, 2018

Hi,
you can reference the component in code and call deleteAll() function to clear the files displayed in image preview.

// reference the image uploader instance in code @ViewChild('imageInput') imageInput: ImageUploadComponent; this.imageInput.deleteAll();

// set the identifier in the markup <image-upload #imageInput" </image-upload>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants