vue file agent

Solutions on MaxInterview for vue file agent by the best coders in the world

showing results for - "vue file agent"
Camil
21 Apr 2018
1<template>
2  <VueFileAgent
3    ref="vueFileAgent"
4    :theme="'list'"
5    :multiple="true"
6    :deletable="true"
7    :meta="true"
8    :accept="'image/*,.zip'"
9    :maxSize="'10MB'"
10    :maxFiles="14"
11    :helpText="'Choose images or zip files'"
12    :errorText="{
13      type: 'Invalid file type. Only images or zip Allowed',
14      size: 'Files should not exceed 10MB in size',
15    }"
16    @select="filesSelected($event)"
17    @beforedelete="onBeforeDelete($event)"
18    @delete="fileDeleted($event)"
19    v-model="fileRecords"
20  ></VueFileAgent>
21  <button :disabled="!fileRecordsForUpload.length" @click="uploadFiles()">
22    Upload {{ fileRecordsForUpload.length }} files
23  </button>
24</template>
25