{"action":"created","issue":{"url":"https://api.github.com/repos/pallets/flask/issues/3016","repository_url":"https://api.github.com/repos/pallets/flask","labels_url":"https://api.github.com/repos/pallets/flask/issues/3016/labels{/name}","comments_url":"https://api.github.com/repos/pallets/flask/issues/3016/comments","events_url":"https://api.github.com/repos/pallets/flask/issues/3016/events","html_url":"https://github.com/pallets/flask/issues/3016","id":388141379,"node_id":"MDU6SXNzdWUzODgxNDEzNzk=","number":3016,"title":"Request multiple files - New update old syntax does not work","user":{"login":"HenryVijan","id":45656374,"node_id":"MDQ6VXNlcjQ1NjU2Mzc0","avatar_url":"https://avatars3.githubusercontent.com/u/45656374?v=4","gravatar_id":"","url":"https://api.github.com/users/HenryVijan","html_url":"https://github.com/HenryVijan","followers_url":"https://api.github.com/users/HenryVijan/followers","following_url":"https://api.github.com/users/HenryVijan/following{/other_user}","gists_url":"https://api.github.com/users/HenryVijan/gists{/gist_id}","starred_url":"https://api.github.com/users/HenryVijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenryVijan/subscriptions","organizations_url":"https://api.github.com/users/HenryVijan/orgs","repos_url":"https://api.github.com/users/HenryVijan/repos","events_url":"https://api.github.com/users/HenryVijan/events{/privacy}","received_events_url":"https://api.github.com/users/HenryVijan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T10:09:24Z","updated_at":"2018-12-06T10:11:27Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\n\r\nI have form(Form) which contains\r\n\r\n```\r\n<form method=\"POST\" enctype=\"multipart/form-data\" action=\"{{ url_for('xxx') }}\">\r\n  <input type=\"file\" name=\"MultipleFileUpload\" multiple=\"\">\r\n  <input type=\"hidden\" name=\"csrf_token\" value=\"{{ csrf_token() }}\" />     \r\n  <input type=\"submit\" value=\"add\">\r\n</form>\r\n```\r\n\r\nIt should upload multiple files but it does not.\r\n\r\nPython code\r\n```\r\nob = request.files.getlist(\"MultipleFileUpload[]\")\r\nfor x in ob:\r\n     etc..\r\n```\r\nThis was my old code which works perfectly\r\n\r\nI presume it was caused by update\r\n\r\n\r\nso I change it code to: \r\n\r\n`ob = request.files.getlist(\"MultipleFileUpload\")`\r\n\r\n`ob = request.files.to_dict()`\r\n\r\n\r\nNone of them works\r\n\r\nIt just upload 1 file or none\r\n\r\n\r\n* Python version: 2.7.12 64-bit\r\n* Flask version: 1.0.2\r\n* Werkzeug version: 0.14.1\r\n"},"comment":{"url":"https://api.github.com/repos/pallets/flask/issues/comments/444819694","html_url":"https://github.com/pallets/flask/issues/3016#issuecomment-444819694","issue_url":"https://api.github.com/repos/pallets/flask/issues/3016","id":444819694,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDgxOTY5NA==","user":{"login":"ThiefMaster","id":179599,"node_id":"MDQ6VXNlcjE3OTU5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/179599?v=4","gravatar_id":"","url":"https://api.github.com/users/ThiefMaster","html_url":"https://github.com/ThiefMaster","followers_url":"https://api.github.com/users/ThiefMaster/followers","following_url":"https://api.github.com/users/ThiefMaster/following{/other_user}","gists_url":"https://api.github.com/users/ThiefMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ThiefMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThiefMaster/subscriptions","organizations_url":"https://api.github.com/users/ThiefMaster/orgs","repos_url":"https://api.github.com/users/ThiefMaster/repos","events_url":"https://api.github.com/users/ThiefMaster/events{/privacy}","received_events_url":"https://api.github.com/users/ThiefMaster/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T10:11:27Z","updated_at":"2018-12-06T10:11:27Z","author_association":"MEMBER","body":"Why do you have `[]` there? You should remove that. Browsers do not add `[]` for multi-value fields; it's just some JS frameworks adding this to make PHP users happy..."}}
{"actor":{"display_login":"ThiefMaster"}}