Fixed

Oops. I copied the $scope.error function definition down but forgot to change the name of the new function to fileAdded. Done now.