Directiva Input File
.directive('fileInput', ['$parse', function ($parse) {
return {
restrict: 'A',
link: function (scope, element, attributes) {
element.bind('change', function () {
$parse(attributes.fileInput)
.assign(scope,element[0].files)
scope.$apply()
});
}
};
}])
<input type="file" file-input="files" />
<ul>
<li ng-repeat="file in files">{{file.name}}</li>
</ul>