{"action":"closed","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/8911","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/8911/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/8911/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/8911/events","html_url":"https://github.com/ElemeFE/element/issues/8911","id":283474452,"number":8911,"title":"The problem of the [Feature Request] upload plug-in accept","user":{"login":"duyukun","id":7586967,"avatar_url":"https://avatars1.githubusercontent.com/u/7586967?v=4","gravatar_id":"","url":"https://api.github.com/users/duyukun","html_url":"https://github.com/duyukun","followers_url":"https://api.github.com/users/duyukun/followers","following_url":"https://api.github.com/users/duyukun/following{/other_user}","gists_url":"https://api.github.com/users/duyukun/gists{/gist_id}","starred_url":"https://api.github.com/users/duyukun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duyukun/subscriptions","organizations_url":"https://api.github.com/users/duyukun/orgs","repos_url":"https://api.github.com/users/duyukun/repos","events_url":"https://api.github.com/users/duyukun/events{/privacy}","received_events_url":"https://api.github.com/users/duyukun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-20T07:39:31Z","updated_at":"2017-12-20T09:00:01Z","closed_at":"2017-12-20T09:00:01Z","author_association":"NONE","body":"<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n\r\n### Existing Component\r\nYes\r\n\r\n### Component Name\r\nupload\r\n\r\n### Description\r\nelement 1.3.4\r\n\r\n在使用el-upload批量上传文件的时候，需要校验文件的类型，当我校验放在before-upload的时候 校验不通过return false 阻止掉一个与校验类型不匹配的的文件，通过的文件则上传成功，但是上传的进度则显示则为百分之0，并且预览的图片也没有显示。\r\n\r\n建议，设计一个验证accept的功能，暴露出一个校验事件。之前我想也通过拿到上传文件的总数，但是看了源代码，上传操作是根据上传文件数组进行foreach，并没有暴露选择上传的文件数组，所以，综合以上所有的尝试，都没有办法做成功，也许我尝试的方式没对，还望指点\r\n\r\n<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n"}}
{"actor":{"display_login":"Leopoldthecoder"}}