{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1286","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1286/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1286/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1286","id":127853074,"number":1286,"title":"IE10,11,Edge won't pass the formdata besides \"file\"","user":{"login":"codingfishman","id":5292705,"avatar_url":"https://avatars.githubusercontent.com/u/5292705?v=3","gravatar_id":"","url":"https://api.github.com/users/codingfishman","html_url":"https://github.com/codingfishman","followers_url":"https://api.github.com/users/codingfishman/followers","following_url":"https://api.github.com/users/codingfishman/following{/other_user}","gists_url":"https://api.github.com/users/codingfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/codingfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingfishman/subscriptions","organizations_url":"https://api.github.com/users/codingfishman/orgs","repos_url":"https://api.github.com/users/codingfishman/repos","events_url":"https://api.github.com/users/codingfishman/events{/privacy}","received_events_url":"https://api.github.com/users/codingfishman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T06:07:27Z","updated_at":"2016-01-21T07:47:09Z","closed_at":null,"body":"Maybe this is the only case for me, but I haven't find any related issues referring to this.\r\n\r\nI want to pass some authentication data together with `file` in the `data` block, as this:\r\n```\r\nfile.upload = Upload.upload({\r\n          url: '/api/file',\r\n          data: {\r\n            'file': file,\r\n            'token': 'thetoken'\r\n          }\r\n        })\r\n\r\n```\r\nThis works fine in Chrome and Safari, but in IE the `token` will not be passed in the request. I checked the request body, only `file` is there, the `token` is dropped.\r\n\r\nI did some debugging with the `upload` function, and saw the parameter `token` was added to the formdata by `formdata.append()`, but in the final request it was lost. This happens in IE10, IE11 and Edge."},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/173485882","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1286#issuecomment-173485882","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1286","id":173485882,"user":{"login":"codingfishman","id":5292705,"avatar_url":"https://avatars.githubusercontent.com/u/5292705?v=3","gravatar_id":"","url":"https://api.github.com/users/codingfishman","html_url":"https://github.com/codingfishman","followers_url":"https://api.github.com/users/codingfishman/followers","following_url":"https://api.github.com/users/codingfishman/following{/other_user}","gists_url":"https://api.github.com/users/codingfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/codingfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingfishman/subscriptions","organizations_url":"https://api.github.com/users/codingfishman/orgs","repos_url":"https://api.github.com/users/codingfishman/repos","events_url":"https://api.github.com/users/codingfishman/events{/privacy}","received_events_url":"https://api.github.com/users/codingfishman/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T07:47:09Z","updated_at":"2016-01-21T07:47:09Z","body":"Sorry @danialfarid , my mistake.  I checked the `body` panel in IE developer tool, and there was only \"form-data:file\", no `token` and the API returned error code so I thought this is the root cause.\r\n\r\nBut when I was about to try a new way I realized the URL of the API was wrong. So I changed it to the correct one and the error gone.\r\n\r\nThanks for your help!"}}