Angular: Empty Fiddle

http://angularjs.org/

HTML

<script src="http://code.angularjs.org/angular-1.0.0rc8.js"></script>
<div ng-controller="MyCtrl">
    <input type="file" onchange="Alert()">
    {{theFile.name}}
</div>

JavaScript

var myApp = angular.module('myApp',[]);

function MyCtrl($scope, $window) {
    $scope.name = 'Superhero';
    MyCtrl.prototype.$scope = $scope;
}

MyCtrl.prototype.setFile = function(element) {
    var $scope = this.$scope;
    $scope.$apply(function() {
        $scope.theFile = element.files[0];
    });
};