0

I am using ng2-file-upload in my angular 4 application. I wanted to validate and throw an error when the file of not expected type would be selected, I am able to do that by using uploader built-in function onWhenAddingFileFailed(). But File name will remain in the UI despite it failed to upload. Please refer the screenshot below. Kindly let me know if there is a fix which can be done in the Angular way without trying to find the DOM element and modify the value.

enter image description here

Roman Skydan
  • 5,478
  • 4
  • 19
  • 39
AnoopGoudar
  • 914
  • 9
  • 18

0 Answers0