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

Clearing the file that is already loaded #53

Open
sahansera opened this issue Sep 30, 2015 · 4 comments
Open

Clearing the file that is already loaded #53

sahansera opened this issue Sep 30, 2015 · 4 comments

Comments

@sahansera
Copy link

Hi, is there a way to clear a file that is already loaded in the 'input' ? I tried setting the model to null, but it didn't clear away the file. Would be nice if there's an on-demand function to call and reset the file uploader. Thanks!

@FabioGuerreiro
Copy link

I guess changing to $scope.file = { } again

@corehook
Copy link

$scope.file = { } not work

@adonespitogo
Copy link
Owner

Fixed in pull request #64 , will be merge in few moments

@adonespitogo
Copy link
Owner

To reset the input element, just assign null, {} or [] in your model (e.g. $scope.file = null;)

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

4 participants