{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/842","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/842/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/842/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/842","id":91277862,"number":842,"title":"$upload function not working on ipad with iOS 8.3","user":{"login":"JoshPMP","id":11213035,"avatar_url":"https://avatars.githubusercontent.com/u/11213035?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshPMP","html_url":"https://github.com/JoshPMP","followers_url":"https://api.github.com/users/JoshPMP/followers","following_url":"https://api.github.com/users/JoshPMP/following{/other_user}","gists_url":"https://api.github.com/users/JoshPMP/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshPMP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshPMP/subscriptions","organizations_url":"https://api.github.com/users/JoshPMP/orgs","repos_url":"https://api.github.com/users/JoshPMP/repos","events_url":"https://api.github.com/users/JoshPMP/events{/privacy}","received_events_url":"https://api.github.com/users/JoshPMP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-26T15:21:50Z","updated_at":"2015-06-29T13:02:13Z","closed_at":null,"body":"Here's the function I'm trying to use after a file has been selected.  I can see that an image has been selected, but this function isn't getting triggered.  It works on my iMac and Android devices.  Any ideas?\r\n```\r\n$scope.uploadSub = function (files) {   \r\n    if (files && files.length) {\r\n        for (var i = 0; i < files.length; i++) {\r\n            var file = files[i];\r\n           $upload.upload({\r\n                url: globalUrl + '/images',\r\n                file: file,\r\n                method: 'POST',\r\n                headers: {'Authorization': token}, \r\n                data: file\r\n            }).progress(function (evt) {\r\n                var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n                console.log('progress: ' + progressPercentage + '% ' +\r\n                            evt.config.file.name);\r\n//                       $scope.stillLoading = true;\r\n                 //create a new array to store loader gif\r\n               $scope.lineItems[$scope.parent].subLineItems[$scope.subIndex].loadingPics = [];\r\n       $scope.lineItems[$scope.parent].subLineItems[$scope.subIndex].loadingPics.push({src: 'http://lb.delfi.lv/images/loading-icon.gif'});\r\n           }).success(function (data, status, headers, config) {\r\n//                console.log('file ' + config.file.name + 'uploaded. Response: ' + JSON.stringify(data));\r\n               //remove loader gif\r\n               $scope.lineItems[$scope.parent].subLineItems[$scope.subIndex].loadingPics.pop();\r\n               //push image placeholder src into its array\r\n               $scope.lineItems[$scope.parent].subLineItems[$scope.subIndex].pictures.push({src: data.widget.file, uuid: data.widget.uuid});\r\n             }).error(function(resp){\r\n                $scope.loading = false;\r\n                if(status == 403){\r\n                    $scope.showRedirect = true;\r\n                    $scope.messages = resp.messages;\r\n                    $scope.showAlert = true;\r\n                } else {\r\n                    $scope.messages = resp.messages;\r\n                    $scope.showAlert = true;\r\n                };\r\n           });\r\n        }\r\n      }else {\r\n         \r\n      }\r\n    };\r\n```"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/116650969","html_url":"https://github.com/danialfarid/ng-file-upload/issues/842#issuecomment-116650969","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/842","id":116650969,"user":{"login":"JoshPMP","id":11213035,"avatar_url":"https://avatars.githubusercontent.com/u/11213035?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshPMP","html_url":"https://github.com/JoshPMP","followers_url":"https://api.github.com/users/JoshPMP/followers","following_url":"https://api.github.com/users/JoshPMP/following{/other_user}","gists_url":"https://api.github.com/users/JoshPMP/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshPMP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshPMP/subscriptions","organizations_url":"https://api.github.com/users/JoshPMP/orgs","repos_url":"https://api.github.com/users/JoshPMP/repos","events_url":"https://api.github.com/users/JoshPMP/events{/privacy}","received_events_url":"https://api.github.com/users/JoshPMP/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T13:02:13Z","updated_at":"2015-06-29T13:02:13Z","body":"Hello Danial,\n\nThanks for getting back to me.  The issue is now resolved.  I think it was\nan issue with our server that was timing out when uploading images.  Which\nwould mean the .success was not being called, but not because of anything\nin the plug-in.  I do love this plug-in though. Great job.\n\n-Josh\n\nOn Fri, Jun 26, 2015 at 2:45 PM, Danial Farid <notifications@github.com>\nwrote:\n\n> So what the issue is? ngf-change not being triggered or .success not being\n> called?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/danialfarid/ng-file-upload/issues/842#issuecomment-115828774>\n> .\n>\n"}}