@EnFXChile wrote:
Hello I have an app that takes a picture of the camera and stores it in this line:
var url = uploadTask.snapshot.metadata.downloadURLs [0];
$rootScope.myUrl = url;I have a form that stores the name, email in this line
$scope.formData =
{
name: $ scope.user_username,
email: $ scope.user_email,
}If I send the form like this at this time, it sends perfectly. But if sending the form by adding the image url like this:
$scope.formData =
{
name: $scope.user_username,
email: $scope.user_email,
myImage: $rootScope.myUrl, // get undefined and not sent form
}as I can do to save the url in my formData?
Posts: 11
Participants: 2