-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Description
bug 描述
图片上传时,在onBeforeUpload函数中返回了false,但再次提交同样的文件会因为文件已经上传过被
你预期的样子是?
重复上传的同名文件会多次触发onBeforeUpload函数返回false
系统和浏览器及版本号
- 操作系统 windows
- 浏览器和版本 chrome 138.0.7204.169
wangEditor 版本
5.1.23
demo 能否复现该 bug ?
不能
- 中文 demo https://www.wangeditor.com/demo/
- English demo https://www.wangeditor.com/demo/?lang=en
在线 demo
无
最小成本的复现步骤
(请告诉我们,如何最快的复现该 bug)
- 步骤一
配置中添加onBeforeUpload,然后固定返回false - 步骤二
反复上传文件,会固定触发报错:Cannot add the duplicate file xxxx, it already exists
实际上来说这个文件既然在onBeforeUpload函数中被拦下来了,是否不应该算作已存在的文件,或者如何才能在文件列表中删除这个文件,才能在反复上传同名文件的时候多次触发onBeforeUpload函数
Metadata
Metadata
Assignees
Labels
No labels