pull/386/merge
Henrique Schmitt 2019-02-03 15:38:28 +00:00 committed by GitHub
commit 31d4525727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,8 @@
}); });
}; };
$scope.getFile = function () { $scope.getFile = function (file) {
fileReader.readAsDataUrl($scope.file, $scope) fileReader.readAsDataUrl(file, $scope)
.then(function (result) { .then(function (result) {
$scope.picture = result; $scope.picture = result;
}); });

View File

@ -10,7 +10,7 @@
link: function ($scope, el) { link: function ($scope, el) {
el.bind('change', function (e) { el.bind('change', function (e) {
$scope.file = (e.srcElement || e.target).files[0]; $scope.file = (e.srcElement || e.target).files[0];
$scope.getFile(); $scope.getFile($scope.file);
}) })
} }
} }