Skip to content

sukh-idgateway/vue3-dropzone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-dropzone

Drop in replacement of vue2-dropzone that supports vue3

A Vue component for file uploads, powered by Dropzone.js. Check out the demo.


Development

# install your dependencies
npm install

# install vue-dropzone
npm install dropzone-vue3

(or with yarn)

yarn add dropzone-vue3

Usage

<template>
  <vue-dropzone
    ref="myVueDropzone" 
    id="dropzone" 
    :options="dropzoneOptions"
  />
</template>  
<script>
import vueDropzone from 'dropzone-vue3'

export default {
  components: {
    vueDropzone,
  },
  data () {
    return {
      dropzoneOptions: {
        url: 'https://httpbin.org/post',
        thumbnailWidth: 150,
        maxFilesize: 0.5,
        headers: { "My-Awesome-Header": "header value" }
      }
    }
  }
  ...
}

NPM vue3 NPM Downloads

About

A Vue.js component for Dropzone.js - a drag’n’drop file uploads utility with image previews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 83.0%
  • JavaScript 17.0%