Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

关于uploader.removeFile()问题 #742

Open
oscargem opened this issue Jan 20, 2015 · 1 comment
Open

关于uploader.removeFile()问题 #742

oscargem opened this issue Jan 20, 2015 · 1 comment

Comments

@oscargem
Copy link

版本:0.1.5。
每上传一幅图片之后,调用uploader.removeFile(file.id, true),如此操作几次之后,每次都用console.log(uploader.getFiles())输出,看到文件集合的长度并没有减少,而是随着操作次数而递增。感觉上removeFile没有起到作用。但是发现可以重复上传同一幅图片,又感觉起到了作用。(PS:如果不调用uploader.removeFile,是不能重复上传同一图片的,除非整页面刷新或把同一图片改名)。也就是说removeFile的确是操作了队列,这样理解不知有没有错?
另外,请教如何获取文件的队列内容。因为通过uploader.getFiles()获取的集合是不会因为调用了removeFile()而有所变化。

@zousandian
Copy link

API 说加上 true 就可以删除了,但是实际遇到情况与上面描述一样。
@2betop 请问这个是不是 bug ?#594

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants