I'm trying to post an excel file using AngularJS $http post and getting the 
following error in console - "$digest already in progress".

    Error: [$rootScope:inprog] $digest already in progress
    http://errors.angularjs.org/1.4.3/$rootScope/inprog?p0=%24digest
    at beginPhase (http://localhost:19394/Scripts/angular.js:16200:9)
    at Scope.prototype.$apply 
 (http://localhost:19394/Scripts/angular.js:15944:11)
    at Anonymous function   
(http://localhost:19394/app/core/core.directives.js:50:21)
    at jQuery.event.dispatch (http://localhost:19394/Scripts/jquery- 
 2.1.4.js:4434:6)
    at elemData.handle 
(http://localhost:19394/Scripts/jquery-2.1.4.js:4120:5)

My script follows,

          var fdata = new FormData();
          fdata.append('file', file);

            $http({
                url: url,
                method: 'POST',
                data: fdata,
                withCredentials: true,
                headers: { 'Content-Type': undefined, 'X-Requested-With': 
'XMLHttpRequest' },
                transformRequest: angular.identity
            });

My controller action follows,
           
        [HttpPost]
        public ActionResult SaveAccounts(HttpPostedFileBase file)
        {

         }
 
How to get rid of this error?     

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to