A Vue component to create a drag’n’drop image upload with support for instant preview.
How to use it:
1. Import and register the component.
import UploadImages from "vue-upload-drop-images";
export default { components: { UploadImages, }, }
2. Add the component to the template.
<template> <UploadImages @change="handleImages" /> </template>
export default { components: { UploadImages, }, methods:{ handleImages(files){ console.log(files) } } }
3. Available component props.
max: Number, uploadMsg: String, maxError: String, fileError: String, clearAll: String,
Preview:
Changelog:
07/02/2021
- Bugfix
06/21/2021
- Bugfix
v1.0.6 (06/09/2021)
- Bugfix
Download Details:
Author: yudax42
Live Demo: https://vueupload.yudax.dev/
Download Link: https://github.com/yudax42/vue-upload-drop-images/archive/refs/heads/master.zip
Official Website: https://github.com/yudax42/vue-upload-drop-images
Install & Download:
# NPM
$ npm i vue-upload-drop-images
This does not work, it does not work, it only uploads the images but it does not pass the preview, it does not offer a route.
Sorry, but this is malfunction.
the name, size, type and lastmodified objects from argument files, it does not serve me at all, i can’t get one image and display in a image html tag