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

feat: expose fileList to beforeUpload #57

Merged
merged 1 commit into from
Dec 10, 2016
Merged

Conversation

benjycui
Copy link
Member

@benjycui benjycui commented Dec 5, 2016

Close: ant-design/ant-design#4015

如下可以限制最多上传三个文件:

function beforeUpload(file, fileList) {
  const shouldBeUpload = this.state.fileList.concat(fileList)
    .slice(0, 3).indexOf(file) > -1;
  // TODO
}

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.05%) to 30.0% when pulling a1fc952 on feat-beforeUpload into 36b7d1a on master.

@benjycui
Copy link
Member Author

benjycui commented Dec 9, 2016

ping~

@shepherdwind shepherdwind merged commit d9eb309 into master Dec 10, 2016
@shepherdwind shepherdwind deleted the feat-beforeUpload branch December 10, 2016 12:03
@shepherdwind
Copy link
Contributor

npm owner 加你了,自己发一个版本吧

@benjycui
Copy link
Member Author

2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants