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

ImageUploader 上传多张图片的时候,其中有一张上传报错就会立即触发 onChange,导致拿不到最终所有的数据 #6775

Open
xliez opened this issue Nov 6, 2024 · 0 comments

Comments

@xliez
Copy link

xliez commented Nov 6, 2024

Version of antd-mobile

5.38.1

Operating system and its version

Others

Browser and its version

No response

Sandbox to reproduce

https://codesandbox.io/p/sandbox/friendly-torvalds-4ljg4h

What happened?

设置 multiple 属性
一次上传多张图片,中间有一张接口报错,就会立即触发 onChange ,只能拿到前面成功的图片,而不等待后续的接口

原因是这里是 Promise.all,有一个任务 reject 后就 reject :

Relevant log output

No response

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

No branches or pull requests

2 participants