82
rated 0 times
[
84]
[
2]
/ answers: 1 / hits: 15933
/ 5 Years ago, tue, august 27, 2019, 12:00:00
I am dynamically generating excel template file using vue-json-excel for the user. After user filling data in the template file i want take it as a input and convert all data in JSON formate and send it to the server side but not getting how to do .
<template>
<div id=app>
<md-field @change=previewFiles>
<label>upload excel file</label>
<md-file v-model=metaDataFile @change=previewFiles />
</md-field>
</div>
</template>
<script>
export default {
components: {
loginComponent,
uploadComponent
},
data() {
return {
metaDataFile: null
}
},
methods:{
previewFiles(event) {
console.log(event.target.files);
console.log(this.metaDataFile);
}
}
}
</script>
More From » json