{"action":"opened","number":376,"pull_request":{"url":"https://api.github.com/repos/expressjs/multer/pulls/376","id":82720632,"html_url":"https://github.com/expressjs/multer/pull/376","diff_url":"https://github.com/expressjs/multer/pull/376.diff","patch_url":"https://github.com/expressjs/multer/pull/376.patch","issue_url":"https://api.github.com/repos/expressjs/multer/issues/376","number":376,"state":"open","locked":false,"title":"Check and discard array notation from fieldname when fileStrategy is ARRAY","user":{"login":"JasonMore","id":383719,"avatar_url":"https://avatars.githubusercontent.com/u/383719?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonMore","html_url":"https://github.com/JasonMore","followers_url":"https://api.github.com/users/JasonMore/followers","following_url":"https://api.github.com/users/JasonMore/following{/other_user}","gists_url":"https://api.github.com/users/JasonMore/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonMore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonMore/subscriptions","organizations_url":"https://api.github.com/users/JasonMore/orgs","repos_url":"https://api.github.com/users/JasonMore/repos","events_url":"https://api.github.com/users/JasonMore/events{/privacy}","received_events_url":"https://api.github.com/users/JasonMore/received_events","type":"User","site_admin":false},"body":"I noticed angular.js was adding an array notation to the fieldname, and this check removes that. Not sure if this is valid or not but thought I would share since I'm sure others have come across this.","created_at":"2016-08-25T13:35:49Z","updated_at":"2016-08-25T13:35:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e70157b68994d6d6bbe4099e182ac3165bbf858","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/expressjs/multer/pulls/376/commits","review_comments_url":"https://api.github.com/repos/expressjs/multer/pulls/376/comments","review_comment_url":"https://api.github.com/repos/expressjs/multer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/expressjs/multer/issues/376/comments","statuses_url":"https://api.github.com/repos/expressjs/multer/statuses/0387d8b4973e90a647c13240c36c111e1cae1626","head":{"label":"JasonMore:master","ref":"master","sha":"0387d8b4973e90a647c13240c36c111e1cae1626","user":{"login":"JasonMore","id":383719,"avatar_url":"https://avatars.githubusercontent.com/u/383719?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonMore","html_url":"https://github.com/JasonMore","followers_url":"https://api.github.com/users/JasonMore/followers","following_url":"https://api.github.com/users/JasonMore/following{/other_user}","gists_url":"https://api.github.com/users/JasonMore/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonMore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonMore/subscriptions","organizations_url":"https://api.github.com/users/JasonMore/orgs","repos_url":"https://api.github.com/users/JasonMore/repos","events_url":"https://api.github.com/users/JasonMore/events{/privacy}","received_events_url":"https://api.github.com/users/JasonMore/received_events","type":"User","site_admin":false},"repo":{"id":66491347,"name":"multer","full_name":"JasonMore/multer","owner":{"login":"JasonMore","id":383719,"avatar_url":"https://avatars.githubusercontent.com/u/383719?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonMore","html_url":"https://github.com/JasonMore","followers_url":"https://api.github.com/users/JasonMore/followers","following_url":"https://api.github.com/users/JasonMore/following{/other_user}","gists_url":"https://api.github.com/users/JasonMore/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonMore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonMore/subscriptions","organizations_url":"https://api.github.com/users/JasonMore/orgs","repos_url":"https://api.github.com/users/JasonMore/repos","events_url":"https://api.github.com/users/JasonMore/events{/privacy}","received_events_url":"https://api.github.com/users/JasonMore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JasonMore/multer","description":"Node.js middleware for handling `multipart/form-data`.","fork":true,"url":"https://api.github.com/repos/JasonMore/multer","forks_url":"https://api.github.com/repos/JasonMore/multer/forks","keys_url":"https://api.github.com/repos/JasonMore/multer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JasonMore/multer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JasonMore/multer/teams","hooks_url":"https://api.github.com/repos/JasonMore/multer/hooks","issue_events_url":"https://api.github.com/repos/JasonMore/multer/issues/events{/number}","events_url":"https://api.github.com/repos/JasonMore/multer/events","assignees_url":"https://api.github.com/repos/JasonMore/multer/assignees{/user}","branches_url":"https://api.github.com/repos/JasonMore/multer/branches{/branch}","tags_url":"https://api.github.com/repos/JasonMore/multer/tags","blobs_url":"https://api.github.com/repos/JasonMore/multer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JasonMore/multer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JasonMore/multer/git/refs{/sha}","trees_url":"https://api.github.com/repos/JasonMore/multer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JasonMore/multer/statuses/{sha}","languages_url":"https://api.github.com/repos/JasonMore/multer/languages","stargazers_url":"https://api.github.com/repos/JasonMore/multer/stargazers","contributors_url":"https://api.github.com/repos/JasonMore/multer/contributors","subscribers_url":"https://api.github.com/repos/JasonMore/multer/subscribers","subscription_url":"https://api.github.com/repos/JasonMore/multer/subscription","commits_url":"https://api.github.com/repos/JasonMore/multer/commits{/sha}","git_commits_url":"https://api.github.com/repos/JasonMore/multer/git/commits{/sha}","comments_url":"https://api.github.com/repos/JasonMore/multer/comments{/number}","issue_comment_url":"https://api.github.com/repos/JasonMore/multer/issues/comments{/number}","contents_url":"https://api.github.com/repos/JasonMore/multer/contents/{+path}","compare_url":"https://api.github.com/repos/JasonMore/multer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JasonMore/multer/merges","archive_url":"https://api.github.com/repos/JasonMore/multer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JasonMore/multer/downloads","issues_url":"https://api.github.com/repos/JasonMore/multer/issues{/number}","pulls_url":"https://api.github.com/repos/JasonMore/multer/pulls{/number}","milestones_url":"https://api.github.com/repos/JasonMore/multer/milestones{/number}","notifications_url":"https://api.github.com/repos/JasonMore/multer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JasonMore/multer/labels{/name}","releases_url":"https://api.github.com/repos/JasonMore/multer/releases{/id}","deployments_url":"https://api.github.com/repos/JasonMore/multer/deployments","created_at":"2016-08-24T18:58:48Z","updated_at":"2016-08-24T18:58:49Z","pushed_at":"2016-08-25T13:35:48Z","git_url":"git://github.com/JasonMore/multer.git","ssh_url":"git@github.com:JasonMore/multer.git","clone_url":"https://github.com/JasonMore/multer.git","svn_url":"https://github.com/JasonMore/multer","homepage":"","size":2610,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"expressjs:master","ref":"master","sha":"eef091188d3f2c40d0da145d75114434b2b3f840","user":{"login":"expressjs","id":5658226,"avatar_url":"https://avatars.githubusercontent.com/u/5658226?v=3","gravatar_id":"","url":"https://api.github.com/users/expressjs","html_url":"https://github.com/expressjs","followers_url":"https://api.github.com/users/expressjs/followers","following_url":"https://api.github.com/users/expressjs/following{/other_user}","gists_url":"https://api.github.com/users/expressjs/gists{/gist_id}","starred_url":"https://api.github.com/users/expressjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expressjs/subscriptions","organizations_url":"https://api.github.com/users/expressjs/orgs","repos_url":"https://api.github.com/users/expressjs/repos","events_url":"https://api.github.com/users/expressjs/events{/privacy}","received_events_url":"https://api.github.com/users/expressjs/received_events","type":"Organization","site_admin":false},"repo":{"id":16386099,"name":"multer","full_name":"expressjs/multer","owner":{"login":"expressjs","id":5658226,"avatar_url":"https://avatars.githubusercontent.com/u/5658226?v=3","gravatar_id":"","url":"https://api.github.com/users/expressjs","html_url":"https://github.com/expressjs","followers_url":"https://api.github.com/users/expressjs/followers","following_url":"https://api.github.com/users/expressjs/following{/other_user}","gists_url":"https://api.github.com/users/expressjs/gists{/gist_id}","starred_url":"https://api.github.com/users/expressjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expressjs/subscriptions","organizations_url":"https://api.github.com/users/expressjs/orgs","repos_url":"https://api.github.com/users/expressjs/repos","events_url":"https://api.github.com/users/expressjs/events{/privacy}","received_events_url":"https://api.github.com/users/expressjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/expressjs/multer","description":"Node.js middleware for handling `multipart/form-data`.","fork":false,"url":"https://api.github.com/repos/expressjs/multer","forks_url":"https://api.github.com/repos/expressjs/multer/forks","keys_url":"https://api.github.com/repos/expressjs/multer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/expressjs/multer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/expressjs/multer/teams","hooks_url":"https://api.github.com/repos/expressjs/multer/hooks","issue_events_url":"https://api.github.com/repos/expressjs/multer/issues/events{/number}","events_url":"https://api.github.com/repos/expressjs/multer/events","assignees_url":"https://api.github.com/repos/expressjs/multer/assignees{/user}","branches_url":"https://api.github.com/repos/expressjs/multer/branches{/branch}","tags_url":"https://api.github.com/repos/expressjs/multer/tags","blobs_url":"https://api.github.com/repos/expressjs/multer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/expressjs/multer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/expressjs/multer/git/refs{/sha}","trees_url":"https://api.github.com/repos/expressjs/multer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/expressjs/multer/statuses/{sha}","languages_url":"https://api.github.com/repos/expressjs/multer/languages","stargazers_url":"https://api.github.com/repos/expressjs/multer/stargazers","contributors_url":"https://api.github.com/repos/expressjs/multer/contributors","subscribers_url":"https://api.github.com/repos/expressjs/multer/subscribers","subscription_url":"https://api.github.com/repos/expressjs/multer/subscription","commits_url":"https://api.github.com/repos/expressjs/multer/commits{/sha}","git_commits_url":"https://api.github.com/repos/expressjs/multer/git/commits{/sha}","comments_url":"https://api.github.com/repos/expressjs/multer/comments{/number}","issue_comment_url":"https://api.github.com/repos/expressjs/multer/issues/comments{/number}","contents_url":"https://api.github.com/repos/expressjs/multer/contents/{+path}","compare_url":"https://api.github.com/repos/expressjs/multer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/expressjs/multer/merges","archive_url":"https://api.github.com/repos/expressjs/multer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/expressjs/multer/downloads","issues_url":"https://api.github.com/repos/expressjs/multer/issues{/number}","pulls_url":"https://api.github.com/repos/expressjs/multer/pulls{/number}","milestones_url":"https://api.github.com/repos/expressjs/multer/milestones{/number}","notifications_url":"https://api.github.com/repos/expressjs/multer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/expressjs/multer/labels{/name}","releases_url":"https://api.github.com/repos/expressjs/multer/releases{/id}","deployments_url":"https://api.github.com/repos/expressjs/multer/deployments","created_at":"2014-01-30T18:16:04Z","updated_at":"2016-08-25T09:54:43Z","pushed_at":"2016-08-25T13:35:49Z","git_url":"git://github.com/expressjs/multer.git","ssh_url":"git@github.com:expressjs/multer.git","clone_url":"https://github.com/expressjs/multer.git","svn_url":"https://github.com/expressjs/multer","homepage":"","size":2610,"stargazers_count":2110,"watchers_count":2110,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":55,"forks":215,"open_issues":55,"watchers":2110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/expressjs/multer/pulls/376"},"html":{"href":"https://github.com/expressjs/multer/pull/376"},"issue":{"href":"https://api.github.com/repos/expressjs/multer/issues/376"},"comments":{"href":"https://api.github.com/repos/expressjs/multer/issues/376/comments"},"review_comments":{"href":"https://api.github.com/repos/expressjs/multer/pulls/376/comments"},"review_comment":{"href":"https://api.github.com/repos/expressjs/multer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/expressjs/multer/pulls/376/commits"},"statuses":{"href":"https://api.github.com/repos/expressjs/multer/statuses/0387d8b4973e90a647c13240c36c111e1cae1626"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"JasonMore"}}