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] 手动上传函数可否返回一个promise #4560

Open
InsHomePgup opened this issue Sep 12, 2024 · 1 comment
Open

[Upload] 手动上传函数可否返回一个promise #4560

InsHomePgup opened this issue Sep 12, 2024 · 1 comment

Comments

@InsHomePgup
Copy link

这个功能解决了什么问题

可以同步解决上传完成以后去获取上传的信息。现在只能通过自己复写上传函数才能正常的同步的拿到上传完成的文件信息。

你建议的方案是什么

上传函数返回一个Promise,在resolve 那里给出文件信息,或者可以直接根据绑定的files拿到上传完成的文件信息。
至少需要一个在手动上传的函数里指明已经上传完成的一个状态。主要就是这个状态,方便手动上传有更多的操作。

Copy link
Contributor

👋 @InsHomePgup,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

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

No branches or pull requests

1 participant