aammui-uploader

Easy fileuploader for vue js
518 6
Install
npm install aammui-uploader
Latest Version:0.2.0
License:MIT
Last Updated:Nov 1, 2019
Links: GitHub  ·  npm
Maintainer: bedus_creation

aammui fileuploader

It's a vue js fileuploader plugin to handle multiple file upload specially made for laravel.

ScreenShot

Installation

npm install aammui-uploader@0.1.0 --save

Uses

<template>
    <file-uploader url="http://localhost/medias" name="input_name" imgholder="id-to-hold-image-back"></file-uploader>
</template>
<script>
import { FileUploader } from "aammui-uploader";

export default {
    components: { FileUploader }
};
</script>

Server file listing

We assume that same url but (Get and Post) url is used to fetch and post images to server. For example: In above example the url http://localhost/medias return the data in following format

{
    data: [
        {
            id: 188, // Media or Image Id that can be used to attach the media to other model.
            url: "http://localhost:8000/storage/upload/600-xQGysl5i1zsjwXt0I10UdODtdyziLIkT5FuDYElk.jpeg"
        }
    ]
}

local File listing

Fileuploader will hit to same url by post methods and your backend should return the data in the following format.

{
    "id":189, // Media or Image Id that can be used to attach the media to other model.
    "url":"http:\/\/localhost:8000\/storage\/upload\/600-7Gz0FLKEbBA4ndStn97Na24xSg6kODkryp2Euvuw.jpeg"
}

Displaying back image to placeholder

Suppose you want use this uploader to upload profile picture and when user upload and set picture you may want to display back that picture to cetain placeholder. To do so you can pass imgholder props.

<file-uploader url="http://localhost/medias" name="input_name" imgholder="id-to-hold-image-back"></file-uploader>

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released License
0.2.0 MIT
0.1.0 ISC
0.0.4 ISC
0.0.3 ISC
0.0.2 ISC