-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Cannot bind to <input type="file"> #672
Comments
Actually, it looks like the binding still works through the name attribute, but $digest isn't called automatically when the |
is this still an issue in rc2? can you please create a jsfiddle? (this might be related to #757) |
It seems to be fixed now. In Safari (5.1.4, Windows), I had to add ng-model-instant (http://jsfiddle.net/8Tys7/) to the <input type="file"> for it to work, so anyone intending to use binding on file inputs should keep this in mind (or maybe ng-model-instant could be the default for file inputs?) |
unfortunately, adding "ng-model-instant" doesn't work with angular 1.0.1 |
Any news? |
Has this issue been resolved with another fix? |
Is there any work around. ? for now 1.0.2 does not solve the issue either |
I do use an approach suggested by AngularUI team ( It depends on AngularUI code, so you have to include it on your project. For more info on this approach look for Event Binder on the website above. Cheers! On Tue, Sep 18, 2012 at 11:29 AM, Stephen Ward notifications@github.comwrote:
Filipe Gomes Esperandio Gtalk: fiilipesperandio@gmail.com |
Closing as duplicate of #1375 |
Under angular 0.9.19, I could bind to a file input (using the name attribute) and get the name of the selected file. This allowed me to disable my submit button until a file was selected.
In angular 0.10.5, I tried using ng:model on the file input, but it made the appear as a regular text input.
The text was updated successfully, but these errors were encountered: