Anyone use filepond with Meteor? It looks amazing for image uploads.
I’m using the boilerplate (Svelte), but no luck. I just get a file upload unstyled button and when I pick a file, the name of the file shows on the screen, but nothing else happens. In the console, I see the component initialized, but the upload isn’t recognized.
Wondering if it’s a Meteor thing that I’m missing?
<style global>
@import "filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css";
</style>
<script>
import FilePond, { registerPlugin, supported } from "svelte-filepond";
import FilePondPluginImageExifOrientation from "filepond-plugin-image-exif-orientation";
import FilePondPluginImagePreview from "filepond-plugin-image-preview";
// Register the plugins
registerPlugin(FilePondPluginImageExifOrientation, FilePondPluginImagePreview);
// a reference to the component, used to call FilePond methods
let pond;
// pond.getFiles() will return the active files
// the name to use for the internal file input
let name = "filepond";
// handle filepond events
function handleInit() {
console.log("FilePond has initialised");
}
function handleAddFile(err, fileItem) {
console.log("A file has been added", fileItem);
}
</script>
<div class="app">
<FilePond
bind:this="{pond}"
name="{name}"
server="/api"
allowMultiple="{true}"
oninit="{handleInit}"
onaddfile="{handleAddFile}" />
</div>