-
-
Notifications
You must be signed in to change notification settings - Fork 50.1k
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 beforeUpload 在拖拽上传directory时预期行为不一致 #49252
Comments
Hello @mansion-sun. Please provide a online reproduction by forking codesandbox of [email protected] or [email protected], or provide a minimal GitHub repository. Issues labeled by 你好 @mansion-sun,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [email protected] 或 [email protected] 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。 |
我来看看 |
4已经不维护了吧,现在已经改好了在想怎么写单侧 |
如果不升级5,有什么替代方案可以修复这个问题 |
https://ant-design.antgroup.com/docs/react/migration-v5-cn#%E9%80%9A%E8%BF%87%E5%88%AB%E5%90%8D%E5%AE%89%E8%A3%85-v5 |
Fixed in react-component/upload#561 |
要发个 minor,我先 reopen 一下下哈~ |
所以现在有啥好办法解决? 拿 file 自己去构造 fileList 之后再去使用? |
What problem does this feature solve?
在使用Upload Dragger做纯前端上传应用时,可以在上传directory和拖拽上传directory时,在beforeUpload二个参数中获取fileList
What does the proposed API look like?
Upload beforeUpload 在拖拽上传directory时,第二个参数中fileList返回的是本次上传的所有文件列表;与选择文件夹上传directory时行为保持一致。
部分代码如下
重现用例:
https://codesandbox.io/p/sandbox/tuo-zhuai-shang-chuan-antd-4-24-12-forked-kjrx4q?file=%2Fdemo.tsx%3A12%2C1
The text was updated successfully, but these errors were encountered: