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

Look for way to clear the input[type=file] element => FOUND SOLUTION? #104

Open
FredJacquemin opened this issue Mar 2, 2014 · 3 comments

Comments

@FredJacquemin
Copy link

Dear,

as you state in your Readme on line 52, I'm also looking for a way to clear this input[type=file] element.

do you have any clue or can you point me to the right direction ?

Thanks a lot!

Fred

@FredJacquemin
Copy link
Author

maybe using $scope.form.$setPristine(); ??

@FredJacquemin
Copy link
Author

Ok, this is seems ... impossible in a programmatic way, by design, for security reason (appart from a full page reload)

@myfashionhub
Copy link

Why don't you use jQuery: $('input[type=file]').val(''). It works for me. It may not be an angular solution but it's commonly used.

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