Vue FilePond
Vue FilePond is a handy adapter component for FilePond, a JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.
![Donate with PayPal](https://img.shields.io/badge/donate-PayPal.me-pink.svg)
Installation:
npm install vue-filepond --save
Usage:
<template>
<div id="app">
<FilePond
name="test"
labelIdle="Drop files here..."
allow-multiple="true"
v-bind:files="myFiles"
v-on:init="handleFilePondInit"/>
</div>
</template>
<script>
// Import FilePond
import FilePond, { registerPlugin } from 'vue-filepond';
// Register a plugin
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
registerPlugin(FilePondPluginFileValidateType);
export default {
name: 'app',
data: function() {
return { myFiles: ['index.html'] };
},
methods: {
handleFilePondInit: function() {
console.log('FilePond has initialized');
}
},
components: {
FilePond
}
};
</script>
Read the docs for more information