-
Notifications
You must be signed in to change notification settings - Fork 269
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
[FR]: Uploader组件选择多个图片同时上传时还是只会上传一张图片 #2549
Comments
这个问题,以前的nutui1.5.13的老版本都可以,现在更新到2.x版本翻到不行,也是服了 |
升到最新 |
现在已经是最新的2.6.17的版本,还是存在同样的问题 |
收到 |
希望尽快修复。。。不能多选,用户体验不太好呀 |
我发现选择多个文件最终只会上传最后一个文件的根本原因是 readFile 处理多个文件的时候,由于同步循环操作,导致最后setFileList 只会读取到最后一个文件。现在已经提交 pr#2807修改为使用一个新数组存储多个文件,处理完毕之后,最后在进行setFileList 操作。 |
这个功能解决了什么问题?
解决Uploader选择多个图片上传时的问题。目前的问题在Uploader组件中选择多个图片同时上传会导致Onchange事件会触发多次,并且里面的数组参数也都是只有一个元素,而不是多个FileItem元素【上传几张图片就有几个FileItem】。
你期望的组件设计是怎样的?
修改bug
The text was updated successfully, but these errors were encountered: