🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

vue2-dropzone-vue3

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue2-dropzone-vue3

Vue3 port of vue2-dropzone A wrapper around Dropzone.js for Vue 3

1.1.0
latest
Source
npm
Version published
Weekly downloads
2.2K
-2.9%
Maintainers
1
Weekly downloads
 
Created
Source

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 vue2-dropzone-vue3

(or with yarn)

yarn add vue2-dropzone-vue3

Usage

<template>
  <vue-dropzone
    ref="myVueDropzone" 
    id="dropzone" 
    :options="dropzoneOptions"
  />
</template>  
<script>
import vueDropzone from 'vue2-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" }
      }
    }
  }
  ...
}

Donate NPM vue3 NPM Downloads Reputation

FAQs

Package last updated on 22 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts