Clear (Reset) Input FileUpload after insert using AngularJS in ASP.Net MVC

Last Reply 4 months ago By dharmendr

Posted 4 months ago

Hi,

based upon below url i am going to do one functionality

Upload file in Folder (Directory) and path in Database using AngularJS in ASP.Net MVC

in above url after inserting records values are not clearing and also relevant alert message is not displaying

it was  displaying undefined alert message

could you please help me

                var getData = myService.AddSt(formData);
                getData.then(function (msg) {
                    debugger
                      getData.then(function (msg) {
                    $scope.msg = msg.data;
                    if (msg.data == "State added Successfully") {
                        
                        ClearFields();
                         
                    }
                    else {
                        $scope.Name = $scope.Name;
                                           }
                    alert(msg.data);
                }, function (msg) {
                    alert(msg.data);
                    $scope.msg = msg.data;
                });
                    $scope.msg = msg;
                });

 

This question does not have replies that have been liked.