I'm trying to get the value of file input and display it somewhere else, outside of the input. I'm using AngularJS v1.4.8 in the app.
<input type="file" ng-model="fileName" />
<div>{{fileName}}</div>
This approach works fine with type="text" but not with type="file".
Why is it so and how can I solve this problem?
Thank you!