0.2.6 • Published 4 years ago

vuppy v0.2.6

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Vuppy

Simple unofficial Vue.js wrapper for popular library https://uppy.io/

🚀 DEMO

https://vuppy.netlify.com/

Instalation

  • npm npm install vuppy
  • yarn yarn add uppy

Usage

<template>
    <vuppy v-model="images"></vuppy>
</template>

<script>
import vuppy from 'vuppy';

export default {
    components: {
        vuppy
    },

    data() {
        return {
            images: []
        }
    }
}
</script>

Image object

{
    id: Uppy generated id
    file: base64 hashed file,
    name: original filename,
}

Options

You can specify following properties

NameTypeDefault valueDescription
idStringuppyWhen there is more than just one instance rendered at the same time you need to specify uniq id
maxFileSizeNumber2000000Specify Max file size (Bytes)
allowedFileTypesArraynullArray of allowed file types. Exact mime types image/jpeg, or file extensions ['image/*', '.jpg', '.jpeg', '.png', '.gif']
maxNumberOfFilesNumbernullMaximum namuber of files
minNumberOfFilesNumbernullMinimum namuber of files
dashboardHeightNumbernullDashboard height
dashboardWidthNumbernullDashboard width
themeStringlightDashboard color theme
localeStringen_USAll available locales can be found here

License

The MIT License.

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago