feat: Allow only image, pdf, audio, video, csv on file uploader (#1492)
This commit is contained in:
parent
c87cdf25c5
commit
94c231366a
2 changed files with 6 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
<file-upload
|
||||
v-if="showFileUpload"
|
||||
:size="4096 * 4096"
|
||||
accept="image/*, application/pdf, audio/mpeg, video/mp4, audio/ogg"
|
||||
accept="image/*, application/pdf, audio/mpeg, video/mp4, audio/ogg, text/csv"
|
||||
@input-file="onFileUpload"
|
||||
>
|
||||
<i v-if="!isUploading" class="icon ion-android-attach attachment" />
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<template>
|
||||
<file-upload :size="4096 * 2048" @input-file="onFileUpload">
|
||||
<file-upload
|
||||
:size="4096 * 2048"
|
||||
accept="image/*, application/pdf, audio/mpeg, video/mp4, audio/ogg, text/csv"
|
||||
@input-file="onFileUpload"
|
||||
>
|
||||
<span class="attachment-button ">
|
||||
<i v-if="!isUploading.image" class="ion-android-attach" />
|
||||
<spinner v-if="isUploading" size="small" />
|
||||
|
|
Loading…
Reference in a new issue