vfb

vue-file-base64

Vue Component for Convert File to base64

Showing:

Popularity

Downloads/wk

155

GitHub Stars

52

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100