Open kazvaggos opened 2 years ago
@kazvaggos Did you find what the cause was? I too am updating from Vue 2 to Vue 3, and in our case this.$refs.pond.processFiles()
errors when called with TypeError: processFn is not a function
@pbowyer do you have any updates here on how to manually trigger to upload multiple files on a separate button in Vue 3?
@oooredooo-bit No I have failed to get this to work 😞
Just forked a test repo, see: https://stackblitz.com/edit/github-iaw3um?file=src%2FApp.vue
Line 193.
<file-pond
ref="pond"
server="/api"
accepted-file-types="image/jpeg, image/png"
allow-multiple="true"
:imageEditor="myEditor"
:files="myFiles"
@init="handleFilePondInit"
/>
handleFilePondInit: function () {
console.log('FilePond has initialized');
// FilePond instance methods are available on `this.$refs.pond`
// This is for testing purposes
this.$refs.pond.addFile('index.html').then(() => {
this.$refs.pond.processFiles();
});
},
Is there an existing issue for this?
Have you updated Vue FilePond, FilePond, and all plugins?
Describe the bug
Hello team.
While trying to migrate to Vue 3, we noticed that filepond's
removeFiles
method is not working while in Vue 2 it was working just fine. We are expecting the uploaded files to be removed and the component to be in the initial state, but the files are not removed at all in Vue 3, while in Vue 2 they were removed as expected.Reproduction
Our implementation is with options api.
It is like when accessing this.$refs.pond, it is totally another component instance because logging
this.$refs.pond.$el
input id has different hash from the one rendered in the browser.Environment