{"action":"created","issue":{"url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/146","repository_url":"https://api.github.com/repos/benefitcloud/ember-uploader","labels_url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/146/comments","events_url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/146/events","html_url":"https://github.com/benefitcloud/ember-uploader/issues/146","id":208410663,"number":146,"title":"The key for and array is \"files[]\" in place of \"files\"","user":{"login":"jacsebastien","id":19532500,"avatar_url":"https://avatars2.githubusercontent.com/u/19532500?v=3","gravatar_id":"","url":"https://api.github.com/users/jacsebastien","html_url":"https://github.com/jacsebastien","followers_url":"https://api.github.com/users/jacsebastien/followers","following_url":"https://api.github.com/users/jacsebastien/following{/other_user}","gists_url":"https://api.github.com/users/jacsebastien/gists{/gist_id}","starred_url":"https://api.github.com/users/jacsebastien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacsebastien/subscriptions","organizations_url":"https://api.github.com/users/jacsebastien/orgs","repos_url":"https://api.github.com/users/jacsebastien/repos","events_url":"https://api.github.com/users/jacsebastien/events{/privacy}","received_events_url":"https://api.github.com/users/jacsebastien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-17T11:11:55Z","updated_at":"2017-04-05T12:40:43Z","closed_at":null,"body":"I wonder why, when we upload multiple files, the request is like\r\n\r\n`files[]:[{....},{...}]`\r\n\r\nand not simply\r\n`files:[{....},{...}]`\r\n\r\nWhen I upload only one file everything works well but with multiple files I have troubles for selecting them in my back-end with multer or multiparty due to that special key. I can't select a key that contain special characters like []. \r\n\r\nI tried to edit paramNamespace or paramName but that doesn't fix the problem.\r\n\r\nWith multer I have this error:\r\n`{\"code\":\"LIMIT_UNEXPECTED_FILE\",\"field\":\"files[]\",\"storageErrors\":[]}`\r\n\r\nWhen I reopen Uploader object and edit createFormData method to remove the [] in the key everything works well.\r\n\r\nAm I the only one that encounter this problem?"},"comment":{"url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/comments/291848951","html_url":"https://github.com/benefitcloud/ember-uploader/issues/146#issuecomment-291848951","issue_url":"https://api.github.com/repos/benefitcloud/ember-uploader/issues/146","id":291848951,"user":{"login":"jacsebastien","id":19532500,"avatar_url":"https://avatars2.githubusercontent.com/u/19532500?v=3","gravatar_id":"","url":"https://api.github.com/users/jacsebastien","html_url":"https://github.com/jacsebastien","followers_url":"https://api.github.com/users/jacsebastien/followers","following_url":"https://api.github.com/users/jacsebastien/following{/other_user}","gists_url":"https://api.github.com/users/jacsebastien/gists{/gist_id}","starred_url":"https://api.github.com/users/jacsebastien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacsebastien/subscriptions","organizations_url":"https://api.github.com/users/jacsebastien/orgs","repos_url":"https://api.github.com/users/jacsebastien/repos","events_url":"https://api.github.com/users/jacsebastien/events{/privacy}","received_events_url":"https://api.github.com/users/jacsebastien/received_events","type":"User","site_admin":false},"created_at":"2017-04-05T12:40:43Z","updated_at":"2017-04-05T12:40:43Z","body":"Ok thank you for the reply.\r\nI think this will be nice if the format of the key can be defined by the developer that will use your plugin in depending on his backend."}}
{"actor":{"display_login":"jacsebastien"}}