{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/4150","repository_url":"https://api.github.com/repos/jquery/jquery","labels_url":"https://api.github.com/repos/jquery/jquery/issues/4150/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/4150/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/4150/events","html_url":"https://github.com/jquery/jquery/issues/4150","id":347895890,"node_id":"MDU6SXNzdWUzNDc4OTU4OTA=","number":4150,"title":"Make ajax understand other acceptable data ","user":{"login":"jimmywarting","id":1148376,"node_id":"MDQ6VXNlcjExNDgzNzY=","avatar_url":"https://avatars1.githubusercontent.com/u/1148376?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmywarting","html_url":"https://github.com/jimmywarting","followers_url":"https://api.github.com/users/jimmywarting/followers","following_url":"https://api.github.com/users/jimmywarting/following{/other_user}","gists_url":"https://api.github.com/users/jimmywarting/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmywarting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmywarting/subscriptions","organizations_url":"https://api.github.com/users/jimmywarting/orgs","repos_url":"https://api.github.com/users/jimmywarting/repos","events_url":"https://api.github.com/users/jimmywarting/events{/privacy}","received_events_url":"https://api.github.com/users/jimmywarting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-06T12:05:52Z","updated_at":"2018-08-06T22:03:28Z","closed_at":null,"author_association":"NONE","body":"How to send a file or formdata with jQuery is brought up a lot at StackOverflow\r\n\r\nI think you should do things better by trying to understand what kind of data they are sending without having to do `processData = false` and `contentType = false`\r\n\r\nthat is why i propose this should be possible\r\n\r\n```js\r\njQuery.ajax({\r\n  url: url, \r\n  method: 'POST',\r\n  data: FormData || typed arrays || Blob || File\r\n\r\n  // without the need of this:\r\n  // processData: false,\r\n  // contentType: false\r\n});\r\n\r\n// and also \r\njQuery.post(url, FormData || typed arrays || Blob || File)\r\n```\r\n\r\nWhat i usually do is propose using the fetch api instead of jquery's ajax, this is something that you don't make it any easier for the developers, it's quite the opposite. It makes it harder and more confusing to why things don't work"},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/410867580","html_url":"https://github.com/jquery/jquery/issues/4150#issuecomment-410867580","issue_url":"https://api.github.com/repos/jquery/jquery/issues/4150","id":410867580,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDg2NzU4MA==","user":{"login":"timmywil","id":192451,"node_id":"MDQ6VXNlcjE5MjQ1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/192451?v=4","gravatar_id":"","url":"https://api.github.com/users/timmywil","html_url":"https://github.com/timmywil","followers_url":"https://api.github.com/users/timmywil/followers","following_url":"https://api.github.com/users/timmywil/following{/other_user}","gists_url":"https://api.github.com/users/timmywil/gists{/gist_id}","starred_url":"https://api.github.com/users/timmywil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmywil/subscriptions","organizations_url":"https://api.github.com/users/timmywil/orgs","repos_url":"https://api.github.com/users/timmywil/repos","events_url":"https://api.github.com/users/timmywil/events{/privacy}","received_events_url":"https://api.github.com/users/timmywil/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T22:03:28Z","updated_at":"2018-08-06T22:03:28Z","author_association":"MEMBER","body":"Reopening to investigate the possibility of a prefilter, or at least investigating the possibility of swapping the above blocks of code to enable user prefilters to get at data before it goes to `jQuery.param`."}}
{"actor":{"display_login":"timmywil"}}