Hey there, I have a list of items. When clicking on each item, I’m opening a modal that shows a Filepond input to upload its corresponding image.
The first upload works fine. However, when I click on the next item, the Filepond element will keep showing the previous uploaded image, I’d like to ‘reset’ it.
I’m creating the FilePond object like this:
FilePond.registerPlugin(FilePondPluginImagePreview);
FilePond.setOptions(…);
filePondObj = FilePond.create(this.$refs.input);
After storing the image on the server, I tried calling these methods:
filePondObj.removeFile();
filePondObj.destroy();
But the image still persists in the Filepond input…
It’s weird because if I call filePondObj.getFiles() it returns an empty array.
So I’m not really sure why the image is still there.
Would appreciate any input.