Skip to content

Upload 组件 无法通过 :beforeUpload 来阻止文件列表更新 #1753

@yf-hk

Description

@yf-hk
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.10

Environment

All browsers

Reproduction link

https://codesandbox.io/s/distracted-herschel-gpv0g

Steps to reproduce

  1. 建立一个上传控件,设置 :beforeUpload 为一个固定返回 false 值的函数
  2. 上传任意文件,激发 beforeUpload 之后,fileList 里还是把已经拒绝掉的文件加入了

What is expected?

beforeUpload 被拒的文件不应加入 fileList

What is actually happening?

无法拒绝特定类型的文件加入文件列表

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions