diff --git a/awx/ui/static/lib/ansible/directives.js b/awx/ui/static/lib/ansible/directives.js index fefa8232b1..41b4868908 100644 --- a/awx/ui/static/lib/ansible/directives.js +++ b/awx/ui/static/lib/ansible/directives.js @@ -782,6 +782,11 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job reader.onload = function() { ctrl.$setViewValue(reader.result); ctrl.$render(); + ctrl.$setValidity('required',true); + ctrl.$dirty = true; + if (!scope.$$phase) { + scope.$digest(); + } }; reader.onerror = function() { Alert('Error','There was an error reading the selected file.');