add image dropzone in vue js

Solutions on MaxInterview for add image dropzone in vue js by the best coders in the world

showing results for - "add image dropzone in vue js"
Giulio
27 Mar 2018
1npm install vue2-dropzone
2
3import 'vue2-dropzone/dist/vue2Dropzone.css'
4
5
6<template>
7  <div id="app">
8    <vue-dropzone id="drop1" :options="dropOptions"></vue-dropzone>
9  </div>
10</template>
11
12<script>
13import vueDropzone from "vue2-dropzone";
14
15export default {
16  data: () => ({
17    dropOptions: {
18      url: "https://httpbin.org/post"
19    }
20  }),
21  components: {
22    vueDropzone
23  }
24};
25</script>
26
27https://www.digitalocean.com/community/tutorials/vuejs-vue-dropzone