{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/13036","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/13036/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/13036/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/13036/events","html_url":"https://github.com/ant-design/ant-design/issues/13036","id":378882677,"node_id":"MDU6SXNzdWUzNzg4ODI2Nzc=","number":13036,"title":"Pass attributes to Upload's input elements","user":{"login":"zomars","id":3504472,"node_id":"MDQ6VXNlcjM1MDQ0NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3504472?v=4","gravatar_id":"","url":"https://api.github.com/users/zomars","html_url":"https://github.com/zomars","followers_url":"https://api.github.com/users/zomars/followers","following_url":"https://api.github.com/users/zomars/following{/other_user}","gists_url":"https://api.github.com/users/zomars/gists{/gist_id}","starred_url":"https://api.github.com/users/zomars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zomars/subscriptions","organizations_url":"https://api.github.com/users/zomars/orgs","repos_url":"https://api.github.com/users/zomars/repos","events_url":"https://api.github.com/users/zomars/events{/privacy}","received_events_url":"https://api.github.com/users/zomars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"chenshuai2144","id":8186664,"node_id":"MDQ6VXNlcjgxODY2NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false},"assignees":[{"login":"chenshuai2144","id":8186664,"node_id":"MDQ6VXNlcjgxODY2NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-08T19:29:41Z","updated_at":"2018-11-09T03:39:31Z","closed_at":null,"author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### What problem does this feature solve?\r\n\r\nThis will allow to pass specific attributes to the hidden input element, like `id`.\r\n\r\n\r\n### What does the proposed API look like?\r\n\r\nSimilar on how Material UI's passes them via inputProps:\r\n\r\n```js\r\n<label htmlFor=\"custom-id\">Upload file</label>\r\n<Upload\r\n  inputProps={{ id: 'custom-id' }}\r\n/> \r\n```\r\n\r\nThis would render the input something like this:\r\n```js\r\n<input type=\"file\" accept=\"\" style=\"display: none;\" id=\"custom-id\" />\r\n```\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/437239734","html_url":"https://github.com/ant-design/ant-design/issues/13036#issuecomment-437239734","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/13036","id":437239734,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzIzOTczNA==","user":{"login":"afc163","id":507615,"node_id":"MDQ6VXNlcjUwNzYxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/507615?v=4","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T03:39:31Z","updated_at":"2018-11-09T03:39:31Z","author_association":"MEMBER","body":"Could you tell us why do you need id for input element?"}}
{"actor":{"display_login":"afc163"}}