tag:blogger.com,1999:blog-2291333094474865935.post162058737059896983..comments2017-04-03T19:10:47.455-07:00Comments on Era Of Errors: File Upload using AngularJsShiti Saxenahttp://www.blogger.com/profile/01593573848176945901noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2291333094474865935.post-76318539461147348772014-03-03T22:21:27.647-08:002014-03-03T22:21:27.647-08:00yeah it works yeah it works RAVINDRAhttps://www.blogger.com/profile/14263667920387477657noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-7610243725533417792013-09-16T06:35:25.430-07:002013-09-16T06:35:25.430-07:00You could do that in a custom directive, I have up...You could do that in a custom directive, I have updated the blog, the gist wasn't visible in dynamic theme. <br /><br />You could refer to <br />https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest?redirectlocale=en-%20US&redirectslug=DOM%2FXMLHttpRequest%2FUsing_XMLHttpRequest#Monitoring_progress<br /><br />The progress is set as the width of a div element. <br />You might find this question from stackoverflow also quite helpful. <br />http://stackoverflow.com/questions/76976/how-to-get-progress-from-xmlhttprequestShiti Saxenahttps://www.blogger.com/profile/01593573848176945901noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-28014837950431306592013-09-15T04:49:55.182-07:002013-09-15T04:49:55.182-07:00Hey, it's really nice and simple. Is it possib...Hey, it's really nice and simple. Is it possible to add progress bar to this?xaxeshttps://www.blogger.com/profile/09379026651815622008noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-82051340408992623792013-04-27T03:53:48.252-07:002013-04-27T03:53:48.252-07:00It would be better if you posted all the relevant ...It would be better if you posted all the relevant functions. <br />One of the things may be that you don't have something like setFile() function.<br />You need to set the file manually as file input is not handled in AngularJs.Shiti Saxenahttps://www.blogger.com/profile/01593573848176945901noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-154842850746023022013-04-26T15:14:49.156-07:002013-04-26T15:14:49.156-07:00HI, I'm trying it:
$scope.submit = function(...HI, I'm trying it:<br /><br /> $scope.submit = function(){<br /> $http.post($scope.serviceSave, $scope.file, {<br /> headers: {'Content-Type': undefined},<br /> transformRequest: angular.identity<br /> }<br /><br /><br />form ng-submit="submit()" <br /> input type="file" id="foto" ng-model="file"<br /> input type="submit" class="btn" value="go" <br />/form<br /><br />what's wrong?Javierhttps://www.blogger.com/profile/14210136366541904171noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-86931623701916628722013-04-23T09:21:15.406-07:002013-04-23T09:21:15.406-07:00FormData doesn't work for IE < 10.
:(FormData doesn't work for IE < 10.<br /><br />:(Yo mismohttps://www.blogger.com/profile/07190743834905291399noreply@blogger.comtag:blogger.com,1999:blog-2291333094474865935.post-30036108136408471942013-04-21T10:06:07.340-07:002013-04-21T10:06:07.340-07:00Hi
Thanks for sharing this but it do not works wi...Hi<br /><br />Thanks for sharing this but it do not works with internet explorer 8 & below.Anonymoushttps://www.blogger.com/profile/15890118503274672424noreply@blogger.com