filepond icon indicating copy to clipboard operation
filepond copied to clipboard

[Bug] removeFiles() method sends additional DELETE request for chunk upload

Open atidivya opened this issue 1 year ago • 4 comments

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.

image

image

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.

atidivya avatar Sep 02 '22 13:09 atidivya

I think you can set allowRevert to false

rikschennink avatar Sep 05 '22 07:09 rikschennink

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_

image

atidivya avatar Sep 06 '22 08:09 atidivya

Looking at the removeFiles implementation should work, not sure why it doesn't, swamped with work so can't investigate right now

rikschennink avatar Sep 19 '22 06:09 rikschennink

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..

ahl-asg avatar Oct 06 '23 07:10 ahl-asg