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="scope.setFile(this)">
    {{theFile.name}}
</div>

JavaScript

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

function MyCtrl($scope, $window) {
    window.scope = $scope;
    $scope.name = 'Superhero';
    
    $scope.setFile = function(element) {
        $scope.$apply(function() {
            $scope.theFile = element.files[0];
        });
    };
}