filepond
filepond copied to clipboard
[Bug] removeFiles() method sends additional DELETE request for chunk upload
Is there an existing issue for this?
- [X] I have searched the existing issues
Have you updated FilePond and its plugins?
- [X] I have updated FilePond and its plugins
Describe the bug
When using chunk upload for the vue-filepond, we use removeFiles() method to clear the queue when finished processing successfully. However, this methods also sends additional delete request to the server when it is not required.
How can we prevent this request.
My versions: "filepond": "^4.30.3", "filepond-plugin-file-validate-size": "^2.2.5", "filepond-plugin-file-validate-type": "^1.2.6", "vue": "^3.2.23", "vue-filepond": "^7.0.2",
Reproduction
In order to reproduce the issue, please try chunk upload options.
Environment
- Device: Dell XPS laptop
- OS: Windows 11
- Browser: Chrome.
I think you can set allowRevert
to false
Is it allowRevert or revert ? Anyways, tried my luck but still it makes a DELETE request.
source: https://pqina.nl/filepond/docs/api/instance/methods/#removing-files_
Looking at the removeFiles
implementation should work, not sure why it doesn't, swamped with work so can't investigate right now
This is still an issue, can there not just be added a clearFileList method? That doesn't make removeFile event run? Right now I am having to destroy the filepond instance each time, and reinitialize it to handle this issue..