Vue Component for Converting Files to base64. It's based on Dev Mozilla Website
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 fileBase64 from 'vue-file-base64'
// Or
var fileBase64 = require('vue-file-base64');
<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>
Is your component support multiple file?
Callback Function When File has done proceed
Just Contact Me At:
- Email: bosnaufalemail@gmail.com
- Skype Id: bosnaufal254
- twitter: @BosNaufal
MIT Copyright (c) 2016 - forever Naufal Rabbani