diff --git a/script.js b/script.js index cffdd09..4313d4e 100644 --- a/script.js +++ b/script.js @@ -721,24 +721,24 @@ } var file =document.getElementById('filePicker').files[0]; console.log("file",filePicker) - var image = BASE_URL+'/containers/applicants/download/' - console.log("file",image) - var imagePath = filePicker.name; - $scope.data.uploadFile = image + imagePath; - var fd = new FormData() - fd.append('filePicker',data); + // var image = BASE_URL+'/containers/applicants/download/' + // console.log("file",image) + // var imagePath = filePicker.name; + // $scope.data.uploadFile = image + imagePath; + // var fd = new FormData() + // fd.append('filePicker',data); - var deferred = $q.defer(); - $http({ - method:'POST', - url: BASE_URL+'/containers/applicants/upload', - data:fd, - transformRequest:angular.identity, - headers:{'Content-Type':undefined} - }) - .success(function(result){ - deferred.resolve(result); - }) + // var deferred = $q.defer(); + // $http({ + // method:'POST', + // url: BASE_URL+'/containers/applicants/upload', + // data:fd, + // transformRequest:angular.identity, + // headers:{'Content-Type':undefined} + // }) + // .success(function(result){ + // deferred.resolve(result); + // }) $http({ method: 'POST',