One click file upload with AngularJS