@kingscode/vuetify-upload

a vuetify multi file upload with deletions and file previews
752 5
Install
npm install @kingscode/vuetify-upload
Latest Version:0.8.0
Vue:2
License:Apache-2.0
Last Updated:Feb 25, 2020
Links: GitHub  ·  npm
Maintainer: kings_code

Vuetify Upload

A Vuetify multi file upload with deletions and file previews.

Install the app in your main.js

import VuetifyUpload from '@kingscode/vuetify-upload';
Vue.use(VuetifyUpload);

Just add the component on the place you need it to be

<vuetify-upload v-model="files"></vuetify-upload>

Or

<vuetify-upload
    label="Images for the slideshow"
    :max="4"
    can-delete
    accept="image/*"
    :rules="imageRules"
    v-model="images"></vuetify-upload>

And now your files contains an object with all the files that you'll need to add or delete With:

  • file which contains the file itself.
  • isDeleted: a boolean if the file must be deleted.
  • isNewFile: a boolean if the file is new and must be uploaded.
  • preview: a base64 or preview url to thee file
  • And all other attributes you added yourself to the v-model for your own logic

props:

  • max: maximum number of uploadable items. (default: 0 which is unlimited)
  • value: The value/v-model
  • accept: Just like the html accept
  • previewClass: the class on the previews (default xs3)
  • canDelete: a boolean which shows/hides the delete buttons

Also you can use the basic vuetify props like :rules and label

Related Packages

file-uploader-vue-component

A vuejs component of file uploader.

3,739 12
file-uploader-component

A reactjs and vuejs component of file uploader.

17,744 12
vuetify-file-browser

Open source file manager component for Vue.js. Requires Vuetify v2.0 or higher

12,392 171
dropzone-vue

Vue3 Library Component for drag’n’drop file uploads with image previews..

71,849 43
vuetify-upload-button

A Vue.js component for showing a Vuetify input/button for file uploading.

33,596 86

Version History

Version Released Vue License
0.8.0 ^2.5.17 Apache-2.0
0.7.2 ^2.5.17 Apache-2.0
0.7.1 ^2.5.17 Apache-2.0
0.7.0 ^2.5.17 MIT
0.6.1 ^2.5.17 MIT