I have a panel plugin panel that worked fine before Kirby 5.
I’ve been using Breaking changes | Kirby CMS for updating everything to work on Kirby 5 but I can’t make the dropzone to work.
Currently my code is the following:
<k-dropzone @drop="uploadDropzone">
<k-box
theme="empty"
text="Drag files here …"
icon="file-spreadsheet"
height="5rem"
align="center"
/>
</k-dropzone>
uploadDropzone(files) {
this.$refs.uploadDropzone.drop(files, {
url: window.panel.api +"/" +this.$api.pages.url(this.$panel.view.path, "files"),
accept: "text/csv",
multiple: false,
});
}
And when I drop a file on the dropzone I get the following error in the console:
TypeError: this.$refs.uploadDropzone.drop is not a function
Any help? Thanks!!!