Vue Component for Convert File to base64
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8ea5f5f Dec 25, 2016
Permalink
Failed to load latest commit information.
build To Vue 2 Fix Merge Dec 25, 2016
src To Vue 2 Fix Merge Dec 25, 2016
.babelrc To Vue 2 Fix Merge Dec 25, 2016
.gitignore To Vue 2 Fix Merge Dec 25, 2016
LICENSE First Release May 2, 2016
README.md Update ReadMe Jul 11, 2016
index.html To Vue 2 Fix Merge Dec 25, 2016
package.json To Vue 2 Fix Merge Dec 25, 2016
webpack-prod.config.js To Vue 2 Fix Merge Dec 25, 2016
webpack.config.js To Vue 2 Fix Merge Dec 25, 2016
yarn.lock To Vue 2 Fix Merge Dec 25, 2016

README.md

vue file base64

Vue Component for Converting Files to base64. It's based on Dev Mozilla Website

DEMO

Install

You can import vue-file-base64.vue to your vue component file like this and process it with your preprocessor.

You can install it via NPM

npm install vue-file-base64

Import Module

import fileBase64 from 'vue-file-base64'
// Or
var fileBase64 = require('vue-file-base64');

Usage

<template>

  <file-base64
    v-bind:multiple="true"
    v-bind:done="getFiles">
  </file-base64>

</template>


<script>

  import fileBase64 from 'vue-file-base64';

  export default {

    components: { fileBase64 },

    methods: {
      getFiles(files){
        console.log(files);
      }
    }
  };

</script>

Props

multiple (Boolean)

Is your component support multiple file?

done (Function)

Callback Function When File has done proceed

Thank You for Making this useful~

Let's talk about some projects with me

Just Contact Me At:

License

MIT Copyright (c) 2016 - forever Naufal Rabbani