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组件上传成功回调中建议保留当前上传的File文件对象 #3868

Closed
Adangs opened this issue Oct 14, 2022 · 2 comments
Closed
Labels
feature request New feature or request

Comments

@Adangs
Copy link
Contributor

Adangs commented Oct 14, 2022

This function solves the problem (这个功能解决的问题)

在finish回调中去获取当前上传的图片文件宽高

Expected API (期望的 API)

before-upload回调中File文件对象是存在的,finish回调保持一致即可

image

@github-actions github-actions bot added the feature request New feature or request label Oct 14, 2022
@07akioni
Copy link
Collaborator

这个确实可以考虑多存留一点时间

Adangs pushed a commit to Adangs/naive-ui that referenced this issue Nov 24, 2022
07akioni pushed a commit that referenced this issue Dec 18, 2022
* on-finish 中保留 file对象
关闭 #3868

* 增加 keep-file-after-finish 属性允许用户配置在on-finish 中保留 file

关闭 #3868

Co-authored-by: Adang <[email protected]>
@07akioni
Copy link
Collaborator

closed in #4085

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

No branches or pull requests

2 participants