0

I have made a directive for file upload... I am trying to clear the file upload attachment using external button.

my plunkr work

I am able to clear the scope model with the button, but however the input field itself is not acting up on the clear event. (i.e the message like "2 files" still remains there).

Thanks in advance

dhamibirendra
  • 3,016
  • 23
  • 26
  • 1
    The problem is that you need to clear the contents of the file input element - but that's not so easy. [See this answer for one way to do it](http://stackoverflow.com/a/832730/238427) – JoseM May 16 '14 at 13:26
  • @JoseM thanks.. Post your comment as answer.. I will accept it – dhamibirendra May 26 '14 at 10:25

0 Answers0