@SanderPals wrote:
Can somewhone tell me why this angular script doesn't work:
$http.post($scope.ApiLink + 'appFotoOpslaan', { params: { sGuid: $scope.sGuid, sTrmID: $state.params.iTrmID, sTypeID: imgSort, sBestandsNaam: "TEST", sImageBase64: $scope.imgSource } })
.success(function (data, status, headers, config) {
alert("Gelukt?");
}).error(function (data, status, headers, config) {
if (data == "Foto is opgeslagen") {
var alertPopup = $ionicPopup.alert({
title: 'Succeed!',
template: 'Photo saved, but still in the error?
});
} else {
alert("Error?" + data);
}
});
Posts: 2
Participants: 2