Answers for "add image dropzone in vue js"

0

add image dropzone in vue js

npm install vue2-dropzone

import 'vue2-dropzone/dist/vue2Dropzone.css'


<template>
  <div id="app">
    <vue-dropzone id="drop1" :options="dropOptions"></vue-dropzone>
  </div>
</template>

<script>
import vueDropzone from "vue2-dropzone";

export default {
  data: () => ({
    dropOptions: {
      url: "https://httpbin.org/post"
    }
  }),
  components: {
    vueDropzone
  }
};
</script>

https://www.digitalocean.com/community/tutorials/vuejs-vue-dropzone
Posted by: Guest on March-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language