Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload 上传多个文件时 onChange 调用不正确 #3001

Closed
jokemmy opened this issue Sep 10, 2016 · 3 comments
Closed

Upload 上传多个文件时 onChange 调用不正确 #3001

jokemmy opened this issue Sep 10, 2016 · 3 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@jokemmy
Copy link

jokemmy commented Sep 10, 2016

本地环境

  • antd 版本: last
  • 操作系统及其版本:mac 10.11.6
  • 浏览器及其版本: chrome last

你做了什么?

上传多个文件,自己实现了一份上传列表,要显示上传进度

你期待的结果是:

上传多个文件验证通过的文件正常上传,不正确的文件不上传

实际上的结果:

上传多个文件时,选的文件最后一个不通过验证(即beforeUpload返回false),之前验证通过的文件正常上传了,但是却没有调用 onChange 函数。

可重现的在线演示

重现方法:
第一次选一个jpg文件和一个非jpg文件
第二次同样的两个文件顺序相反
看控制台,一次onChange调用了,一次没调用,应该是两种情况都要调用的

http://codepen.io/xutou12/pen/QKjrKw?editors=0010

afc163 added a commit that referenced this issue Sep 12, 2016
@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Sep 12, 2016
@afc163
Copy link
Member

afc163 commented Sep 12, 2016

感谢细致的反馈~ 例子很有帮助

@afc163 afc163 closed this as completed Sep 12, 2016
@jokemmy
Copy link
Author

jokemmy commented Sep 12, 2016

p^.^q

@lock
Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants