Dropzone

Dropzone mixin allows you attach a file drop listener to any component.

<template>
    <div v-dropzone="onDrop"></div>
</template>

<script>
export default {
    methods: {
        onDrop(fileList) {
            // process your files
        }
    }
}
</script>

Example

Drop file into the textarea

See Dropzone Input for more details and usage example.